Forum Discussion
Key influencers analyzing measure
Here's a sample of my data:
I add a measure:
Hi Sasha ,
How about adding CALCULATE per sum values? Did you try this? Did it work?
Revenue/Unit = DIVIDE(CALCULATE(SUM(Sales[Total Revenue])),CALCULATE(SUM(Sales[Units Sold])))
Due to the sample data is a part of your data, I'm not sure the result I tested is what you want. You could try this firstly. If there is anything wrong, please point it.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Sasha6 years agoHelper III
v-xuding-msft Hi,
it didn't change anything :(
- v-xuding-msft6 years agoCommunity Support
Hi Sasha ,
Please try the following formula.Revenue/Unit = var a = CALCULATE(SUM(Sales[Total Revenue]),ALL(Sales)) var b = CALCULATE(SUM(Sales[Units Sold]),ALL(Sales)) return DIVIDE(a,b)
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Sasha6 years agoHelper III
Thank you!
However, this will result in a constant number of Revenue/Unit - meaning for every filter it will return the grand average - so there won't be any difference between a particulr group average and the total average.
By the way - in the file you uploaded - if I remove Months (or other columns) from "explain by" and then return it back the results change - it seems like the visualization is not stable.