Resources · Functions Library · TurboIntegrator
TurboIntegrator

CreateHierarchyByAttribute

Creates a hierarchy composed of three levels. The lowest level is the N element, the first parent is a given attribute, and the top level is given by a parameter. The new hierarchy will have the same name as the given attribute.

Cubewise · YouTube
Where it's used
TurboIntegrator
TM1 server version
Version 11
Syntax

How you write it

CreateHierarchyByAttribute(DimensionName, AttributeName, EmptyParentName, RootName)
DimensionNameName of the dimension to create a new hierarchy.
AttributeNameName of the attribute to be used as middle level of the new hierarchy. The AttributeName also names the new hierarchy.
EmptyParentNameName of the middle level parent when a N Level element does not have a value for the parameter ‘AttributeName’. If this parameter is left blank, TM1 will insert the N Level element in the TopLevel element.
RootNameName of the TopLevel element to be added to the new hierarchy.