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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.