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
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.