Skip to content

hierarchy.unwind ​

Removes an element and everything below it from a hierarchy. The dimension's elements aren't deleted.

js
hierarchy.unwind(dimension, hierarchy, parent)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
hierarchystringThe hierarchy's name or id.
parentstringThe element to remove, along with everything below it.

Returns ​

string

An empty string when it succeeds, or an error message when the dimension, hierarchy or element can't be found.

Examples ​

js
hierarchy.unwind("Account", "Profit and Loss", "EBITDA");

This removes EBITDA and everything under it from the Profit and Loss hierarchy of the Account dimension.