HierarchyIndex
HierarchyIndex returns a 1-based index if the hierarchy is in the supplied dimension, 0
otherwise. HierarchyIndex is valid in rules only.
HierarchyIndex cannot be used in TurboIntegrator processes. The presence of this function in a process will prevent the process from compiling.
Syntax
HierarchyIndex (DimName, HierName);
Argument |
Description |
---|---|
DimName |
A valid dimension name. |
HierName |
A valid hierarchy name that you want to find the index position of in DimName. |
Example
This example returns 3, which is the index position of the CustomerTarget hierarchy in the model dimension.
HierarchyIndex ('model', 'CustomerTarget');