Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone,
I developed a measure that counts the number of users with sanctions accumulated, but on the matrix, the total is wrong, as you can see in the image below.
The measure is:
The result is:
Value A 30
Value B 21
Value C 6
Value D 1
Total: 52
Any ideas about how to solve it?
Thanks to everyone for all your help!
Regards,
José Luis
Solved! Go to Solution.
To solve this, you can use a different approach to calculate the totals correctly. One common method is to use a SUMX function that iterates over each row and sums up the distinct counts individually.
Here's an adjusted measure to get the correct total:
Error column =
SUMX(
SUMMARIZE(
Sanctions,
Sanctions[Userid],
"DistinctCount", DISTINCTCOUNT(Sanctions[Userid])
),
[DistinctCount]
)
To solve this, you can use a different approach to calculate the totals correctly. One common method is to use a SUMX function that iterates over each row and sums up the distinct counts individually.
Here's an adjusted measure to get the correct total:
Error column =
SUMX(
SUMMARIZE(
Sanctions,
Sanctions[Userid],
"DistinctCount", DISTINCTCOUNT(Sanctions[Userid])
),
[DistinctCount]
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |