IStandardCubeDestination.MarkCalculatedUnitsMismatch

Syntax

MarkCalculatedUnitsMismatch: Boolean;

Description

The MarkCalculatedUnitsMismatch property determines whether aggregation results for indicators with different measurement units are marked.

Comments

Available values:

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.

Example

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:

IStandardCubeDestination