Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello,
Total is reflecting incorrect in table view when using DISTINCTCOUNT function in DAX.
Solved! Go to Solution.
Hi @Anonymous ,
You could create a new measure:
test2 = IF(HASONEVALUE('Participants'[COUNTRY_DESCR]),[Test1], SUMX(ALL('Participants'),'Participants'[Test1]))
final you will see the below:
Wish it is helpful for you!
Best Regards
Lucien
Hi @Anonymous ,
You could create a new measure:
test2 = IF(HASONEVALUE('Participants'[COUNTRY_DESCR]),[Test1], SUMX(ALL('Participants'),'Participants'[Test1]))
final you will see the below:
Wish it is helpful for you!
Best Regards
Lucien
@Anonymous
The total row in a visual showing a DISTINCTCOUNT does not add up the rows above. I caluclates the DISTINCTCOUNT without any filter applied to the country_descr. You must also have some other filters / slicers that are feeding into that visual.
If you want the total to add up by country you can do something like this.
Participants by country =
SUMX (
VALUES ( TableName[COUNTRY_DESCR] ),
CALCULATE ( DISTINCTCOUNT ( 'Participants'[ Participant Id] ) )
)
You will need to change the 'TableName' to match whatever table your [COUNTRY_DESCR] is in.
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 |
|---|---|
| 75 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |