The requested page is not available for the requested platform. You are viewing the content for Default platform.

CalculatedField.Expression Property

Gets or sets the expression of the calculated field.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.2.Core.dll

Declaration

public string Expression { get; set; }
Public Property Expression As String

Property Value

Type Default Description
String

null

A String that specifies the calculated field's expression.

Remarks

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.

Note

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