Skip to content

hierarchy.hasRootMember

Checks if a hierarchy has a specific element as its root member.

js
hierarchy.hasRootMember(dimension, hierarchy, name)

Parameters

  • dimension - The dimension in which the hierarchy exists in which to check for a root member.
  • hierarchy - The hierarchy in which to check for a root member.
  • name - The identifier of the root member.

Example

js
if(hierarchy.hasRootMember("Account", "Profit and Loss", "EBITDA")) {  
    //do something
}