Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
prabinpatroc1
Contributor
Contributor

Flatten hierarchy

Hello,

I have a which have 3 columns and data is like:

Name     |    Parent        |    Level

All      |        All       |     1

Toys     |        All       |     2

Vehicles |        Toys      |     3

Cars     |        Vehicles  |     4

 

I need to flatten this hierarchy structure and the result should look like the below:

 

Name     |    parent_1   |    parent_2   |     parent_3   |   

All      |      (NULL)   |    (NULL)     |     (NULL)     |   

Toys     |      All      |    (NULL)     |     (NULL)     |   

Vehicles |      All      |    Toys       |      (NULL)    |   

Cars     |      All      |    Toys       |      Vehicles  | 

 

How can do this in Talend?

Labels (3)
2 Replies
Anonymous
Not applicable

Hi
The result output is unreadable, can you please edit it or write the result in a file and upload a screenshot?

Regards
Shong
prabinpatroc1
Contributor
Contributor
Author

Attached spreadsheet has input and output data.

 


Hierarchy-Flattening.xlsx