View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Creating Window Calculations

The Dashboard Designer allows you to add a window calculation for numeric measures. To do this, invoke the data item menu and select the required calculation type.

Measure_CalculationMenu

The image above shows a calculation menu of the Pivot dashboard item. The following items are available.

[!NOTE] Note that the list of available items in this menu can be changed by the Dashboard Designer dynamically. For instance, if the Pivot dashboard item does not contain dimensions in the Rows section, menu items related to rows will be disabled.

Running Total

The Running Total calculation can be used to compute a cumulative total for the specified measure across a window. For example, the Grid below displays cumulative sales across all quarters.

CreatingCalculations_ExampleRunningTotal

The Customize Calculation dialog provides the following settings for the Running Total calculation.

CustomizeCalculationDialog_RunningTotal

Moving Calculation

The Moving calculation uses neighboring values to calculate a total. For example, the Grid below shows a moving average across all quarters.

CreatingCalculations_ExampleMovingCalculation

The Customize Calculation dialog provides the following settings for the Moving calculation.

CustomizeCalculationDialog_MovingCalculation

Difference

The Difference calculation can be used to compute the difference between measure values across a window. For example, the Grid below shows absolute differences between quarterly sales.

CreatingCalculations_ExampleDifference

The Customize Calculation dialog provides the following settings for the Difference calculation.

CustomizeCalculationDialog_Difference

Percent of Total

A calculation is used to compute a percentage of the total for the specified measure across a window. For example, the Grid below shows a contribution of individual quarterly sales to total sales.

CreatingCalculations_ExamplePercentOfTotal

The Customize Calculation dialog provides the following settings for the Percent of Total calculation.

CustomizeCalculationDialog_PercentOfTotal

Rank

Use the Rank calculation to compute rankings for the specified measure across a window. For example, the Grid below shows a ranking of sales for individual quarters.

CreatingCalculations_ExampleRank

The Customize Calculation dialog provides the following settings for the Rank calculation.

CustomizeCalculationDialog_Rank

Expression

Use Expression to specify a custom calculation by adding the required calculation functions inside the measure expression.

CustomizeCalculationDialog_Expression

Click the Edit in Expression Editor button to invoke the Expression Editor and specify the required expression.

CustomizeCalculation_ExpressionDialog

The Expression type provides the Calculate along option that specifies the window and direction used to calculate differences. Note that this option is in effect if the expression contains a calculation function.