HierarchyCount returns the number of hierarchies in the supplied dimension.
In this video, HierarchyCount will be used to retrieve the Employee Hierarchies dimension number of the hierarchy and apply it in the rule to populate the Employee Salaries cube.
Rules
Version 11 and 12
HierarchyCount(DimName)