cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
t_guet01
Frequent Visitor

How do I create a hierarchy from an input table (in Query Editor)?

Hey guys,

 

I do want to create a hierarchy - but not really the so called "hierarchy" in the DAX view. I mean an organizational hierarchy with different levels of aggregation. That's how my input data look like:

 

IdentNameTitleLevel
animalsAnimals 1
a02MammalsAnimals2
a0203DogsMammals3
a020307RetrieversDogs4
a04FishAnimals2
a0405SharksFish3
a040509SawsharksSharks4
............

 

I basically want an output table like this (down to level 4):

 

IdentLevel 1Level 2Level 3Level 4
a020307AnimalsMammalsDogsRetrievers
a040509AnimalsFishSharksSawsharks

 

I tried with pivoting, but for the 4th level, ist leaves levels 1 and 2 blank, which I dont want.

 

Any ideas?


Thank you guys.

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @t_guet01,

Did amitchandak 's suggestions help with your scenario? if that is the case, you can consider Kudo or accept his suggestions to help others who faced similar requirements.

If these also don't help, please share more detailed information to help us clarify your scenario to test.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!