Forum Discussion
BOM Modeling
- 8 years ago
hi,
I found the solution through Many to Many relationship topic.
https://exceleratorbi.com.au/many-many-relationships-dax-explained/#comment-23150
thanks for helping anyway.
hi,
thanks for your answer. It seems not working.
I attached a sample with the expected result. This can be done through merge function in PQ, however, I don't want to flatten the material requirement in BOM table.
https://1drv.ms/x/s!Aps8poidQa5zku5ZWW9lT_x6em_EZA
Just want to find a DAX solution to calculate the component requirements.
Thanks again,
Iamnvt,
Create a new table using DAX below.
Table = GENERATEALL(BOM,var productid =BOM[Product] return SELECTCOLUMNS(CALCULATETABLE(Sales,Sales[Product]=productid),"sales",Sales[Sales]))
Then create a table visual as follows.
Regards,
Lydia
- Iamnvt8 years agoContinued Contributor
hi,
I found the solution through Many to Many relationship topic.
https://exceleratorbi.com.au/many-many-relationships-dax-explained/#comment-23150
thanks for helping anyway.