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! Request now

Reply
Tring01
Helper I
Helper I

BOM Hierarchy with multi level parent and child

Hi,

I have a data like below I need to create a hierarchy on matrix visual i will explain the scenario like how to show the data on hierarchy. Below is the screenshot for sample data.

Tring01_0-1725271919188.png

I have a 2 columns here 1. parent and 2. child,

I have implemented simple table in page 1 by using child column and I passed the child value to drill through feature for the 2nd page here the hierarchy will start. If i pass child value as 'B' and go to the drill through page the result is like below.

Tring01_1-1725272355312.png

Level1: Here I need to create a custom column and that will do the functionality like this, what ever the value we are getting on the results page that is 'B' will go and filter the parent column and what ever the child values it is showing those details will return in custom column like below screenshot. 

Tring01_2-1725272608046.png

The new column showing the values like "F,E,D,C" in the form of rows. then this column I used in matrix visual in rows field the data should show like this. Initially it looks "+B" if I click on this it will expand like this

-B

    F

    E

    D

    C

The same way I need to create the level 2 custom column, the entire process will be the same for here it is taking the value from level1 column instead of child column. I will explain the scenaro below. if I use the level 2 custom column in the matrix visual in the rows field. the data is showing like this.

-B

    +F

    +E

    +D

    +C

 

 

If I select '+D' then the next hierarchy will be like 

-D

     H

     G

     F

is this requirement we can handle it from the power BI or not I was bit concern about it. if someone could help me on this if this is feasible please share the report with some dummy data so that I can replicate the same in my data model.

 

Thanks in advance for your inputs on this.

 

    

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thank you lbendlin

Hi, @Tring01 

Based on your description, I created the following example data:

vjianpengmsft_0-1725955705190.png

First, use the merge function in Power Query:

vjianpengmsft_8-1725956094784.png

vjianpengmsft_9-1725956138510.png

vjianpengmsft_10-1725956161536.png

Expand the child column:

vjianpengmsft_11-1725956206736.png

vjianpengmsft_12-1725956228796.png

The results are as follows:

vjianpengmsft_13-1725956280416.png

I've uploaded the PBIX file used in this instance below.

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Thank you lbendlin

Hi, @Tring01 

Based on your description, I created the following example data:

vjianpengmsft_0-1725955705190.png

First, use the merge function in Power Query:

vjianpengmsft_8-1725956094784.png

vjianpengmsft_9-1725956138510.png

vjianpengmsft_10-1725956161536.png

Expand the child column:

vjianpengmsft_11-1725956206736.png

vjianpengmsft_12-1725956228796.png

The results are as follows:

vjianpengmsft_13-1725956280416.png

I've uploaded the PBIX file used in this instance below.

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

lbendlin
Super User
Super User

Hi, Thanks For the quick reply

I just gone through the provided url but unfortunately that is not suitable for my requirement.

Thanks

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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