Forum Discussion
Multiply multiple rows with a single value in another table
- 6 years ago
Hi Anonymous ,
Here is the PBIX SKU
This was pretty straightforward with your good explanation. Thank you. However when I added the filters, I realized that one would need a weighted average loss dollar amount if there were more than 1 loss percentage. (i.e. select A and C ) So that was interesting.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
NathanielTotal Sales for Selected SKU = CALCULATE(SUM(Sales[Volume]),ALLSELECTED(Sales[SKU])) sumx(sales,Sales[Volume] * [Losses per Asset Carrier All Selected]) Percentage Loss = Divide([Total Losses],[Total Sales for Selected SKU]) Losses per Asset Carrier All Selected = CALCULATE(AVERAGE(ASSET_METRIC[Losses%]),Filter(Sales,Sales[SKU]=(Sales[SKU])))
Hi Anonymous ,
Here is the PBIX SKU
This was pretty straightforward with your good explanation. Thank you. However when I added the filters, I realized that one would need a weighted average loss dollar amount if there were more than 1 loss percentage. (i.e. select A and C ) So that was interesting.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Total Sales for Selected SKU = CALCULATE(SUM(Sales[Volume]),ALLSELECTED(Sales[SKU])) sumx(sales,Sales[Volume] * [Losses per Asset Carrier All Selected]) Percentage Loss = Divide([Total Losses],[Total Sales for Selected SKU]) Losses per Asset Carrier All Selected = CALCULATE(AVERAGE(ASSET_METRIC[Losses%]),Filter(Sales,Sales[SKU]=(Sales[SKU])))
Thanks a lot Nathaniel
It seems to work!!
Excellent.
Michael