IEaxDataAreaSlice.IndicatorAggregation

Syntax

IndicatorAggregation(IndicatorType: Integer): EaxAggregationFunction;

Parameters

IndicatorType. Metric type of analytical data area slice.

Description

The IndicatorAggregation property determines aggregation method for specified metric type of analytical data area slice.

Comments

Metric types of analytical data area slice are presented in the EaxSliceIndicatorType enumeration.

Data aggregation is a calculation of upper level data basing on lower level data.

Example

Executing the example requires that the repository contains an express report with the EXPRESS identifier containing table.

Add links to the Express, Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    DataArea: IEaxDataArea;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get express report
    Express := MB.ItemById("EXPRESS").Edit As IEaxAnalyzer;
    // Get data area
    DataArea := Express.DataArea;
    // Get data slice
    Slice := DataArea.Slices.Item(0);
    // Set aggregation method
    Slice.IndicatorAggregation(EaxSliceIndicatorType.Color) := EaxAggregationFunction.Sum;
    // Save changes
    (Express As IMetabaseObject).Save;
End Sub UserProc;

After executing the example aggregation of specified metric type is done.

See also:

IEaxDataAreaSlice