Forum Discussion
ERP material usage formula
- 4 years ago
Hi Anonymous ,
In you description of the problem you actually refer the solution:
Anonymous wrote:
I need the formula to step thru each particular top level SKU, and multiply it by the corresponding material usage - not aggregate it and then multiply. Hopefully this makes sense.
In this cases you need to use the SUMX function, that will iterate over a table and make the expected values so in this case you would need to do something similar to:
USAGE = SUMX( Values(Bom[Sku]), [SUM of material qty conv]*[sum of qtyordered])Be aware that this formula most probably will not work on your model, because I do not know how you have the setup of the BOM tables and the relationships between the other tables.
If you please can share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Hi Anonymous ,
In you description of the problem you actually refer the solution:
Anonymous wrote:
I need the formula to step thru each particular top level SKU, and multiply it by the corresponding material usage - not aggregate it and then multiply. Hopefully this makes sense.
In this cases you need to use the SUMX function, that will iterate over a table and make the expected values so in this case you would need to do something similar to:
USAGE = SUMX( Values(Bom[Sku]), [SUM of material qty conv]*[sum of qtyordered])
Be aware that this formula most probably will not work on your model, because I do not know how you have the setup of the BOM tables and the relationships between the other tables.
If you please can share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
- MFelix4 years agoSuper User
Hi Anonymous ,
Glad this worked, only question that could come up was about the setup of the BOM that because of parent/childf relation could be setup in a way that you would need to rephrase the syntax.