Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
Can you please support on how to create a DAX formula on how to calculate the average sales for each group?
Please see an example below:
Many thanks,
Solved! Go to Solution.
Try creating a measure:
Average Sales = CALCULATE(AVERAGE(Table1[Amount]),ALLEXCEPT(Table1,Table1[Group]))
Try creating a measure:
Average Sales = CALCULATE(AVERAGE(Table1[Amount]),ALLEXCEPT(Table1,Table1[Group]))
@Anonymous
@Omega's MEASURE would work as a calculated column too
| User | Count |
|---|---|
| 58 | |
| 46 | |
| 31 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 78 | |
| 66 | |
| 44 | |
| 26 | |
| 22 |