CalculatedField.Expression Property

Gets or sets the expression of the calculated field.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v21.1.Core.dll


public string Expression { get; set; }

Property Value

Type Default Description


A String that specifies the calculated field’s expression.


To specify the calculated field’s name, use the CalculatedField.Name property.

The dashboard control supports criteria language for building expressions. See Expression Constants, Operators, and Functions to learn the expression syntax.


To specify the type of the calculated field, insert the required conversion function (such as ToStr, ToDecimal, ToInt, etc.) into the calculated field’s expression (the Expression property). For instance, the following expression contains the ToDecimal conversion function used to specify the field type:

ToDecimal([UnitPrice] * (1 - [Discount]))

See Also