MarkCalculatedUnitsMismatch: Boolean;
The MarkCalculatedUnitsMismatch property determines whether aggregation results for indicators with different measurement units are marked.
Available values:
True. Aggregation results for indicators with different measurement units are marked.
False. Default value. Aggregation results for indicators with different measurement units are not marked.
One can get data aggregated by indicators with different measurement units during cube calculation in the CubeInstanceDestinationExecutorOptions.MarkAggregationsUnitsMismatch mode. Data will be marked with the flag available in the IMatrixIterator.ValueFlag property in the output cube matrix.
Executing the example requires that the repository contains a standard cube with the STD_CUBE identifier.
Add links to the Cubes and Metabase system assemblies.
Sub UserProc;
Var
Mb: IMetabase;
Cube: IStandardCube;
Dest: IStandardCubeDestination;
Begin
Mb := MetabaseClass.Active;
Cube := Mb.ItemById("STD_CUBE").Edit As IStandardCube;
Dest := Cube.Destinations.Item(0);
// Mark aggregation results for indicators with different measurement units
Dest.MarkCalculatedUnitsMismatch := True;
// Save changes
(Cube As IMetabaseObject).Save;
End Sub UserProc;
After executing the example, aggregation results for indicators with different measurement units are marked for the cube.
See also: