Forum Discussion
Calculating Component Usage
Hi Bindi_Baji ,
Please try:
Create relationships for the three tables you provided:
Use "BOM_No" to connect "BOMs" to "products", and then use "Production_Code" to connect "products" to "production".
After creating the relationship, it should look like this:
Create a calculated column:
Component_Usage =
SUMX(
RELATEDTABLE('BOMs'),
'BOMs'[Component_Qty] * 'production'[Packs]
)
This formula iterates through each component of each production code, multiplying the component quantity in the BOM by the pack quantity in the production table, and then summing the results.
The visual effect of the page should look like this:
If you have any other questions please feel free to contact me.
The pbix file is attached.
Best Regards,
Yang
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
- Bindi_Baji2 years agoFrequent Visitor
Hi,
Unoftunately, not what I'm looking for.
Apologies, probably my fault for not being more specific.
Would be something like the below output (or similar)