Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hello, here is my problem:
In this visual the Total column does not calculate the average of the values, I don't know why.
Here's the DAX code of the measure and the image.
Solved! Go to Solution.
@rajendraongole1
Sorry for my response time.
I solved the problem :
- The data is a measure doing a ratio (Qte Prod / Qte Conso) and there was for the 06 May 2024 data for Qte Prod but no data for Qte Conso, so the total take the Qte Prod data from the 06 May in the average calcul of the month (May).
This is why it's more than 100%.
@rajendraongole1
Sorry for my response time.
I solved the problem :
- The data is a measure doing a ratio (Qte Prod / Qte Conso) and there was for the 06 May 2024 data for Qte Prod but no data for Qte Conso, so the total take the Qte Prod data from the 06 May in the average calcul of the month (May).
This is why it's more than 100%.
Hi @Anonymous
Here I create a set of sample:
Then add a measure:
MEASURE =
VAR _vtable =
SELECTCOLUMNS (
'Table',
'Table'[ID],
'Table'[Value],
'Table'[tot],
"_outcome", 'Table'[Value] / 'Table'[tot]
)
RETURN
AVERAGEX ( _vtable, [_outcome] )
The result is as follow:
(13.33%+46.67%+36.84%+81.82%+42.86%+57.14%+66.67%+8.33%+23.08%)/9 = 41.86%
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous - Can you please share some sample data for work around?, it helps to analyze and share expections.
Proud to be a Super User! | |
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 45 | |
| 30 |