Rule

HierarchyIndex

Returns a 1-based index if the hierarchy is in the supplied dimension, 0 otherwise

Cubewise · YouTube
Where it's used
Rule
TM1 server version
Version 11 and 12
Syntax

How you write it

HierarchyIndex(DimName, HierName)
DimNameDimension name.
HierNameA valid hierarchy name.