ElementName
ElementName returns the element of a dimension that corresponds to the index argument.
This function is valid in both rules and TurboIntegrator processes.
Syntax
ElementName(dimension, hierarchy, index)
Argument |
Description |
---|---|
dimension |
A valid dimension name. |
hierarchy |
The name of the hierarchy within the dimension. |
index |
A value less than or equal to the number of elements in the dimension. If this argument is less than 1, or greater than the number of elements in the dimension, the function returns 0. |
Example
This example returns 'Belgium', which is the element within the Countries hierarchy of the Region dimension with an index value of 2.
ElementName('Region', 'Countries', 2)