ICalculatedCubeInstanceCoord.DimVal

Syntax

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

Parameters

DimensionId. Identifier of the destination dimension.

AttributeId. Identifier of the attribute of the destination dimension.

Description

The DimVal method returns the value by the current coordinate of the attribute of the destination 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 destination 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 destination dimension of the calculated cube.

See also:

ICalculatedCubeInstanceCoord