You are here:
Flatten Hierarchical Data
Use the flatten transformation to simplify nested, hierarchical data by converting it to a list. The list tracks where each node and the ones preceding it (referred to as its ancestors) appear within the hierarchy. To flatten data, specify the field that contains every node in the hierarchy and the field that contains their corresponding parent. After you run the transform, each record contains the list of ancestors.
The number of hierarchical levels that you can flatten in a data source depends on the number of rows that it contains.
- 300 levels for over 1 million rows
- 100 levels for 15 million rows
- 50 levels for 20 million rows (the maximum)
- In a transform node, click the Flatten button (
). - For Record ID Column, select the column that contains all the nodes in the hierarchy.
- For Parent ID Column, select the column that contains the parent of each node in the
hierarchy.To include the record ID in the generated column that contains the hierarchy nodes, select Include Record ID Column Value.
- For Hierarchy Column Label, enter a name for the generated column of hierarchy nodes.
- Preview the transformation results.Preview shows only the record ID and its parent in the hierarchy column. You see all ancestors when you run the data transform.
- Click Apply.To collapse the view and see the canvas, click the Collapse button (
). - To generate the hierarchy column, run the data transform.

