hierarchy.parentCount
Returns the number of parent elements in a hierarchy.
js
hierarchy.parentCount(dimension, hierarchy, element)
Parameters
Dimension
- The dimension in which the selected hierarchy exists.Hierarchy
- The identifier of the hierarchy to search.Element
- The identifier of the parent element.+
Example
js
let count = hierarchy.parentCount("Account", "Management Profit and Loss", "EBIT");