# Hierarchy Parameters

## Source Parameters

* ID Field (NodeID): The name of the field that contains the node id.
* Parent ID Field (ParentID): The name of the field that contains the node id of the parent node.
* Name Field (NodeName): The name of the field that contains the name of the node.

## Hierarchy Parameters

* Parent Name (ParentName): The name of the new ParentName field. Optional parameter.
* Path Name(PathName): The name of the new Path field, which contains the path from the root to the node. Optional parameter.
* Depth Name (Depth): The string used to name the new Depth field, which contains the depth of the node in the hierarchy. Optional parameter.
* Path Source (PathSource): The name of the field that contains the name of the node used to build the node path. Optional parameter. If omitted NodeName will be used.
* Path Delimiter (PathDelimiter): The string used as delimiter in the new Path field, e.g. \. Optional parameter. If omitted ‘/’ will be used.

## Belongs To Parameters

* Ancestor ID (AncestorID): The name of the new ancestor id field, which contains the id of the ancestor node.
* Ancestor Name (AncestorName): The name of the new ancestor field, which contains the name of the ancestor node.
* Depth Diff Name (DepthDiff): The name of the new DepthDiff field, which contains the depth of the node in the hierarchy relative the ancestor node. Optional parameter.

## Learn more

* [Hierarchy](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/Hierarchy.htm)
* [HierarchyBelongsTo](https://help.qlik.com/en-US/qlikview/September2026/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/HierarchyBelongsTo.htm)