Skip to content

hierarchy.childCount

Returns the number of children of a parent element in a hierarchy.

js
hierarchy.childCount(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 childrenCount = hierarchy.childCount("Account", "Management Profit and Loss", "EBIT");