IEaxDataAreaSlice.IndicatorAggregation

Fore Syntax

IndicatorAggregation(IndicatorType: Integer): EaxAggregationFunction;

Fore.NET Syntax

IndicatorAggregation[IndicatorType: integer]: Prognoz.Platform.Interop.Express.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.

Fore 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.

Fore.NET Example

The requirements and result of the Fore.NET Example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Express;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Express: IEaxAnalyzer;
    DataArea: IEaxDataArea;
    Slice: IEaxDataAreaSlice;
Begin
    // Get repository
    MB := Params.Metabase;
    // 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.esitColor As Integer] := EaxAggregationFunction.eaafSum;
    // Save changes
    (Express As IMetabaseObject).Save();
End Sub;

See also:

IEaxDataAreaSlice