Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
qliklearnervir
Creator
Creator

Convert table columns into hierarchical structure

I have 1 table like the below structure :

 

Org:

ID

Level1

Level2

Level3

Level4

Level5

Level6

 

Now i want to create a hierarchy to show data like Level1--> Level2-->Level3...........-->Level6 

and want to connect with other tables with ID field.

 

finally, I want to create a perfect pivot table with these hierarchical columns.

please suggest.

Labels (1)
3 Replies
Brett_Bleess
Former Employee
Former Employee

Have a look at the following Design Blog posts:

https://community.qlik.com/t5/Qlik-Design-Blog/Unbalanced-n-level-hierarchies/ba-p/1474325

If that does not quite get you there, here is the base URL for this area you can use to further search the other 700+ posts there, hopefully you can find something further to get you the rest of the way.

https://community.qlik.com/t5/Qlik-Design-Blog/bg-p/qlik-design-blog

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Saravanan_Desingh

You need Parent and Node column. Based on your data,  I have created as below.

Org:
Hierarchy(ID, [Parent ID],Node,,ID)
LOAD *, ID As Node INLINE [
    ID, Parent ID
    Level1, 
    Level2, Level1
    Level3, Level2
    Level4, Level3
    Level5, Level4
    Level6, Level5
    Level7, Level3
];

commQV54.PNG

Saravanan_Desingh