Forum Discussion
Sudharsanan
Helper III
3 years agoVariable Table and measure calculation
Hi All, I have a case where i need to group a set of data and bring the average. Below is my dataset and i need to group the products to have the sales and qty value and then i need to Avg. ...
- 3 years ago
Ah okay so the final average needs to be an average of the average measure,
try looking at these:
https://community.powerbi.com/t5/Desktop/Average-of-measure/td-p/50935
https://community.powerbi.com/t5/Desktop/calculate-average-of-calculated-measure/td-p/568198
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
DOLEARY85
Resident Rockstar
3 years agoHi,
this measure should work for the sum:
Measure = CALCULATE(sum('Table'[Sales]),ALLEXCEPT('Table','Table'[Product]))
just create a 2nd one for QTY.
For the average:
Measure 2 = CALCULATE(AVERAGE('Table'[Sales]),ALLEXCEPT('Table','Table'[Product]))
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
- Sudharsanan3 years ago
Helper III
- DOLEARY853 years ago
Resident Rockstar
Do you have any more info - can you share what you're seeing?
- Sudharsanan3 years ago
Helper III
DOLEARY85 i am getting a value of 73.65, but i need to get 76.94296