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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
moumitadeb
Helper I
Helper I

trying to build a nth level parent child Hierarchy in Matrix table

I am trying to build a hierarchy in matrix table using the below table data . Table has only 2 columns (parent & child) and the hierarchy can go till nth level.(exactly not sure how many levels it can be).However i am facing challenges with this methodology and I couldn't find a solution anywhere so I figured I'd start here.  

 

Below is part of sample table data:

moumitadeb_0-1661865601025.png

 

Below the hierarchy tree i need to build:

moumitadeb_1-1661865600771.png

 

Below the Hierarchy i am getting in PowerBI Desktop:

moumitadeb_2-1661865601343.png

 

Any help would be highly appreciated! Thanks so much!

3 REPLIES 3
moumitadeb
Helper I
Helper I

Hi Folks,

If someone has come through this scenario, will highly appreciate your kind response

Anonymous
Not applicable

Hi, I had a similar issue not to long time ago. 
I mapped out the whole structure in Excel column by column, including a hierarchy level ID. I hope you will find a better soulution, but if not, I made that work after creating the relationship in the report.

Thanks for your suggesstion. But this solution is not going to work for me as i have a dynamic data (where insert/update/delete happens). Also this is not going to reduce the manual effort involved here , if i try the same in excel column by column , as the data size is huge. Struggling with this issue need an urgent resolution.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.