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
Oomsen
Helper III
Helper III

Recursive bom

I have two tables BOM and BOM-details. 

BOM includes assemblies and BOM-details includes parts and sub-assemblies.

I want to get insight in which BOMS a part is used when i change the part.

Currently i can only look one level up or down.

I would like to see all the levels starting from the lowest level.

Level      Assembly    Part/Assembly

1             10.132        10.037

2             10.037       11.785

2              10.037       11.786

In this example i would like to see that 11.785 is used in 10.037 (directly) and 10.132 (indirectly).

 

 

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @Oomsen ,

 

You may create path column using DAX below.

 

Path = PATH(Table1[Part/Assembly],Table1[Assembly])

 

You can learn more: https://radacad.com/parsing-organizational-hierarchy-or-chart-of-accounts-in-power-bi-with-parent-ch....

 

Best Regards,

Amy

 

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

 

@v-xicai 

Thanks i can make it happen with this dax. 

But, there are some parentitems which aren't in the child column. Any suggestion how to fix that?

v-xicai
Community Support
Community Support

Hi @Oomsen ,

 

If the parentitems aren't in the child column, then they may not form hierarchy. Or could you please share your sample data and desired output screenshots for further analysis? Do mask sensitive data before uploading.

 

Best Regards,
Amy

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

 

@v-xicai i continued trying. The Path dax is clear for me and will work if my data is correct. 

That's the issue now. I cannot create complete child and parent tables.

My current data is based on bill of materials. 

BomID      Parent      Child 

Bom1        10.002      10.213

Bom1        10.002      12.046

Bom1        10.002      10.026

Bom2        10.026      10.970

Bom3        10.213      10.971     

The problem is that not all parents are in the column of childs and vice versa. 

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