PivotGridOptionsData.AllowCrossGroupVariation Property

Gets or sets whether summary variations and running totals are calculated independently within individual groups, or throughout the Pivot Grid.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v20.1.Core.dll

Declaration

[DefaultValue(true)]
public bool AllowCrossGroupVariation { get; set; }
<DefaultValue(True)>
Public Property AllowCrossGroupVariation As Boolean

Property Value

Type Default Description
Boolean

true

true to calculate summary variations and running totals throughout the Pivot Grid; false to calculate them independently within individual groups.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to AllowCrossGroupVariation
WinForms Controls PivotGridControl
.OptionsData.AllowCrossGroupVariation
ASP.NET Controls and MVC Extensions ASPxPivotGrid
.OptionsData.AllowCrossGroupVariation
MVCxPivotGrid
.OptionsData.AllowCrossGroupVariation
PivotGridSettings
.OptionsData.AllowCrossGroupVariation
Reporting XRPivotGrid
.OptionsData.AllowCrossGroupVariation

Remarks

The summary variation feature can be enabled via the PivotGridFieldBase.SummaryDisplayType property. To enable running totals, use the PivotGridFieldBase.RunningTotal property.

In the image below, absolute summary variations are calculated for the "Profit (var)" data field. The AllowCrossGroupVariation property is set to false, so the summary variations for the cells within the group "Year=1995" are calculated independently from the previous group "Year=1994". Note the column "Year=1995, Qtr=1, Profit (var)" is empty.

AllowCrossGroupVariation_False

If the AllowCrossGroupVariation property is set to true, summary variations in the group "Year=1995" are calculated taking into account values of the previous group "Year=1994".

AllowCrossGroupVariation_True

See Also