hierarchy.group
TIP
Note this function should be used when linking a hierarchy member as a parent of a dimension member.
Adds a hierarchy member as a child of another hierarchy member.
js
hierarchy.group(dimension, hierarchy, parent, child, sign)
Parameters
dimension
- The dimension in which to create a relationship.hierarchy
- The identifier of the hierarchy in which to create a relationship.parent
- The identifier of a member which may/maynot exist.child
- The identifier of a member which may/may not exist.sign
- (Optional) Determines whether the child's values will be added or subtracted from the parents values. Accepts-1
or1
as an integer.
Example
js
hierarchy.group("Account", "Profit and Loss", "Total Revenue", "600010");