Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I have a data table like this:
Data | ||
Product Group | Product | Value |
Star | Star Alfa | 7 |
Star | Star Bravo | 7 |
Star | Star Charlie | 7 |
Sun | Sun Mike | 12 |
Sun | Sun November | 12 |
Sun | Sun Oscar | 12 |
Sun | Sun Papa | 12 |
I use this measure:
Measure = CALCULATE(AVERAGE('Data'[Value]);FILTER('Data';'Data'[Sales]=0)) |
In this matrix:
Salesman | Star | Sun |
Salesman A | 7 | 12 |
Store 1 | 7 | 12 |
Store 2 | 7 | 12 |
My problem is that though the values for each store is like I want it, I want the vertical sum for Salesman to be 14 and 24. I know that the reason for this is the use of the AVERAGE-function in the measure, but how should I build the measure to get the correct Sum for Salesman, like this:
Salesman | Star | SunMeasure |
Salesman A | 14 | 24 |
Store 1 | 7 | 12 |
Store 2 | 7 | 12 |
Thanks in advance for any suggestions!
/depple
Solved! Go to Solution.
Hi @depple ,
Add below measure into Matrix.
Average = SUMX(VALUES(Data_1[Store]),[Measure])
Best regards,
Yuliana Gu
Hi @depple ,
Add below measure into Matrix.
Average = SUMX(VALUES(Data_1[Store]),[Measure])
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |