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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Bondeuz
Frequent Visitor

Displaying producible amount based on bill of materials

Hi,

 

I need some help with figuring out how the relationship between two of my tables should work in order to display correct information.

 

I want to display if we are able to produce an item based on its bill of materials and the current inventory of items. Currently i cannot figure out how to get the correct answer from the column "Producible" when listing the items by No from the BON_Artiklar table.

 

Bondeuz_0-1703152947825.png

Bondeuz_1-1703153077726.png

 

My formulas

Max Units by Item = RELATED(BON_Artiklar[InventoryField])/Prod_struktur_ExcelProdBOMLine[Quantity_per]
Max Producible Units = 
CALCULATE(
MIN(Prod_struktur_ExcelProdBOMLine[Max Units by Item]),
ALLEXCEPT(Prod_struktur_ExcelProdBOMLine,Prod_struktur_ExcelProdBOMLine[Production_BOM_No])
)
Producible = IF([Max Producible Units]>0,"True","False")

 

I have uploaded a .pbix file for easier inspection.

https://drive.google.com/file/d/1ZGepAQlZRHXOOm-TdIpnLjOykKr9zLq9/view?usp=sharing

 

Thank you.

 

1 REPLY 1
Anonymous
Not applicable

Hi @Bondeuz ,

Depending on the information you provide, you can follow these steps:

1.Change your measures into columns.

vyifanwmsft_0-1703230727129.png

 

Final output:

vyifanwmsft_1-1703230727130.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Yifan Wang

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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