Measure.Calculation Property

Gets or sets a calculation applied to values of the current measure.

Namespace: DevExpress.DashboardCommon

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


public MeasureCalculation Calculation { get; set; }
Public Property Calculation As MeasureCalculation

Property Value

Type Description

A MeasureCalculation descendant that specifies a calculation applied to values of the current measure.

To apply a calculation to values of the required measure, perform the following steps.

To learn more, see Window Calculations.


The code snippet below shows how to create the RunningTotalCalculation for the Extended Price measure. The calculation is performed along columns of the Pivot dashboard item.

            // ...
            Measure extendedPrice = new Measure("Extended Price");

            PivotWindowDefinition pivotWindowDefinition = new PivotWindowDefinition();
            pivotWindowDefinition.DefinitionMode = PivotWindowDefinitionMode.Columns; 
            extendedPrice.WindowDefinition = pivotWindowDefinition;

            RunningTotalCalculation runningSum = new RunningTotalCalculation();
            runningSum.SummaryType = SummaryType.Sum;
            extendedPrice.Calculation = runningSum;

See Also