IPivot.IsFactsAggregationAvailable

Syntax

IsFactsAggregationAvailable: Boolean;

Description

The IsFactsAggregationAvailable property returns whether fact aggregation is available from data source.

Comments

Available values:

To get whether table data aggregation is calculated, use the IPivot.IsAggregationCalced property.

Example

To execute the example, on the form place the Button component named Button1, the ReportBox component named ReportBox1, and the UiReport component named UiReport1. Specify UiReport1 as a data source for ReportBox1. A data source for UiReport1 is a regular report based on a standard cube slice, for which aggregation can be set up.

Add links to the Express, ExtCtrls, Forms, Pivot, Report, Tab, and Ui system assemblies.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Pivot: IPivot;
    EaxDA: IEaxDataArea;
    EaxDASlice: IEaxDataAreaSlice;
Begin
    // Get analytical data area
    EaxDA := UiReport1.Report.DataArea;
    // Get analytical data area slice
    EaxDASlice := EaxDA.Slices.Item(0);
    Pivot := (EaxDASlice As IEaxDataAreaPivotSlice).Pivot;
    // Check if fact aggregation is available from source
    If Pivot.IsAggregationCalced = True Then
        WinApplication.InformationBox ("Fact aggregation from source is available");
        Else
            WinApplication.InformationBox ("Fact aggregation from source is unavailable");
    End If;     
End Sub Button1OnClick;

Clicking the button displays the message about whether source fact aggregation is available.

See also:

IPivot