DimVal(DimensionId: String; AttributeId: String): Variant;
DimensionId. Identifier of the destination dimension.
AttributeId. Identifier of the attribute of the destination dimension.
The DimVal method returns the value by the current coordinate of the attribute of the destination dimension.
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.
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: