Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
lance_6
Helper II
Helper II

Automatic Hierarchy Creation

Issue: 

I want power bi to automatically add levels to a hierarchy so I can use this more effectively within a template. 

 

Background:

I am creating a template to be used by multiple organizations; each structured slightly different from the other. 

All have a parent child hierarchy. But there is a range for depth/levels. Some have 2, some have 22.

 

Data structure:

Capture.PNG

 

I was able to dynamically flatten the hierarchy with query editor (article on how to dynamically flatten parent-child hierarchy). Is there is a way to dynamically create the hierarchy from here, rather than expecting end users to manually create this for their organizations(it'd only be like 4 clicks to add each level, but not ideal)? 

 

Current Process To Create Hierarchy:

1. Right click level 1 > 2. Click create hierarchy > 3. Right click level 2 > 4. Click add to hierarchy > 5. Click <my hierarchy name> > 6. Right click level <#> > 7. Click add to hierarchy > 8. Click <my hierarchy name> > 9. Repeat steps 6-9 for each additional level

 

Thank you in advance for reading my post!

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @lance_6 

 

I don't find any option or workaround to create a custom hierarchy automatically. It seems not supported in Power BI Desktop at present. 

 

Regards,
Community Support Team _ Jing

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @lance_6 

 

I don't find any option or workaround to create a custom hierarchy automatically. It seems not supported in Power BI Desktop at present. 

 

Regards,
Community Support Team _ Jing

That's what I've found so far as well. I submitted it for a new idea and am hoping to have it added at some point. Thank you for your research and help. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors