Measure.WindowDefinition Property

Gets or sets the window definition used to apply a calculation to values of the current measure.

Namespace: DevExpress.DashboardCommon

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

Declaration

public MeasureCalculationWindowDefinition WindowDefinition { get; set; }
Public Property WindowDefinition As MeasureCalculationWindowDefinition

Property Value

Type Default Description
MeasureCalculationWindowDefinition

A MeasureCalculationWindowDefinition descendant that specifies the window definition used to apply a calculation 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.

Examples

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