IEaxSpeedometer.AggregationFunction

Fore Syntax

AggregationFunction: EaxAggregationFunction;

Fore.NET Syntax

AggregationFunction: Prognoz.Platform.Interop.Express.EaxAggregationFunction;

Description

The AggregationFunction property determines aggregation method applied for calculation of value displayed on the speedometer if several data series are selected in the report.

Fore Example

Executing the example requires that the repository contains an express report with the EXPRESS_REPORT identifier. Add links to the Express, Metabase system assemblies.

Sub AdjustSpeedometer;
Var
    MB: IMetabase;
    Enalyzer: IEaxAnalyzer;
    Speedometer: IEaxSpeedometer;
Begin
    MB := MetabaseClass.Active;
    Enalyzer := MB.ItemById("EXPRESS_REPORT").Edit As IEaxAnalyzer;
    Speedometer := Enalyzer.Speedometer;
    Speedometer.Active := True;
    Speedometer.Visible := True;
    Speedometer.AutoScale := False;
    Speedometer.MaxValue := 100;
    Speedometer.MinValue := 0;
    Speedometer.AggregationFunction := EaxAggregationFunction.Average;
    (Enalyzer As IMetabaseObject).Save;
End Sub AdjustSpeedometer;

On executing the example express report speedometer parameters are set up.

Fore.NET Example

The requirements and result of Fore.NET Example execution are the same as in the Fore Example.

Imports Prognoz.Platform.Interop.Express;
Imports Prognoz.Platform.Interop.Metabase;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Enalyzer: IEaxAnalyzer;
    Speedometer: IEaxSpeedometer;
Begin
    MB := Params.Metabase;
    Enalyzer := MB.ItemById["EXPRESS_REPORT"].Edit() As IEaxAnalyzer;
    Speedometer := Enalyzer.Speedometer;
    Speedometer.Active := True;
    Speedometer.Visible := True;
    Speedometer.AutoScale := False;
    Speedometer.MaxValue := 100;
    Speedometer.MinValue := 0;
    Speedometer.AggregationFunction := EaxAggregationFunction.eaafAverage;
    (Enalyzer As IMetabaseObject).Save();
End Sub;

See also:

IEaxSpeedometer