ICalculatedCubeInstanceCoord.DimVal

Syntax

DimVal(DimensionId: String; AttributeId: String): Variant;

Parameters

DimensionId. Identifier of the consumer dimension.

AttributeId. Identifier of the attribute of the consumer dimension.

Description

The DimVal method returns the value by the current coordinate of the attribute of the consumer dimension.

Comments

This method is used in the custom macro calculating the value in the calculated cube by the current coordinate of the attribute of the consumer dimension.

Example

This example is a macro for a calculated cube.

Public Function MyFunc(p: Variant): Variant;
Var
    result: Variant;
Begin     
    result:=(p As ICalculatedCubeInstanceCoord).DimVal("DimensionId","AttributeId");
    Return result;
End Function MyFunc;

Executing the macro calculates the value in the current coordinate of the attribute of the consumer dimension of the calculated cube.

See also:

ICalculatedCubeInstanceCoord