MethodValue: BasicAggregatorOperation;
The MethodValue property returns the method that is used to calculate totals.
The following example assumes that there is the Report object with the IPrxReport type.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Report: IPrxReport;
DIs: IPrxDataIslands;
DI: IPrxDataIsland;
Prop: IPrxDataIslandProperties;
Dim : IDimInstance;
DimProp : IPrxDataIslandDimension;
TotalsH, TotalsL : IPrxDataIslandTotals;
Begin
DIs := Report.DataIslands;
DI := DIs.Item(0).Edit;
Prop := DI.Properties;
Dim := DI.Slice.LeftHeader.Item(0).Dimension;
DimProp := Prop.Dimension(Dim.Dimension);
TotalsH := DimProp.HierarchyTotals;
TotalsL := DimProp.LevelTotals;
TotalsL.Method := TotalsH.MethodValue;
DI.Save;
End Sub UserProca;
The same calculation method is to be applied for the level totals as the method used for the hierarchical totals.
See also: