DimensionElementPrincipalName
Description:
Returns the principal name of an element in a dimension.
Important - If you supply a name of an element which doesn't exist in dimension, the function returns the same name.
Syntax:
DimensionElementPrincipalName(DimName, ElemName);
Arguments:
DimName - Name of the dimension
ElemName - Name of the element. Name could be alias or the principal name
Return Type:
Nothing
Example:
DimensionElementPrincipalName('Products', 'Product1')
Let's say Product1 is an alias of an element, with real name GroceryProduct1
If Product1 exists in the Products dimension, function returns GroceryProduct1. But if Product1 doesn't exist, now, it's important, the function still returns Product1