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