Skip to main content
A newer version of this page is available. .

PivotGridFieldOptions.OLAPUseNonEmpty Property

Gets or sets whether the NonEmpty function should be used in MDX queries for the current measure.

Namespace: DevExpress.XtraPivotGrid

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

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool OLAPUseNonEmpty { get; set; }

Property Value

Type Default Description
Boolean **true**

true to use the NonEmpty function in MDX queries; otherwise, false.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to OLAPUseNonEmpty
Cross-Platform Class Library PivotGridFieldBase
.Options.OLAPUseNonEmpty
WinForms Controls PivotGridField
.Options.OLAPUseNonEmpty
Reporting XRPivotGridField
.Options.OLAPUseNonEmpty
ASP.NET Web Forms Controls PivotGridField
.Options.OLAPUseNonEmpty
MVCxPivotGridField
.Options.OLAPUseNonEmpty

Remarks

PivotGridControl prevents an OLAP server from processing empty tuples (tuples for which there is no data in a particular measure) by default. This allows the pivot grid to deliver better performance.

To exclude empty tuples from the complete set, PivotGridControl uses the NonEmpty MDX function.

In some instances, the NonEmpty function causes valuable data to be filtered out. This may happen when NonEmpty is used with a calculated measure.

If you find any values missing from the pivot grid while using calculated measures, try setting the OLAPUseNonEmpty property to false for these measures. Note that this may slow the performance.

Note

The OLAPUseNonEmpty property is in effect only for fields that define measures.

See Also