ICalculatedCubeInstanceCoord.DimVal

Fore Syntax

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

Fore.NET Syntax

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

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.

Fore 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.

Fore.NET Example

This example is a macro for a calculated cube.

Public Function MyFunc(p: Object): Object;
Var
    result: Object;
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