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 Nathaniel
I got an additional challenge. ;-) Assume that I add in the example above a column to the table with the losses. I would the column year. In this case I would insert a loss % value for 2018 and another row with a value for 2019. How should I calculate in this case the same but taking e.g. the loss for 2019 only.
Hi Anonymous ,
Can't add years to this table.
Nathaniel