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.
Hello,
Total is reflecting incorrect in table view when using DISTINCTCOUNT function in DAX.
Solved! Go to Solution.
Hi @amty63 ,
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 @amty63 ,
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
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.
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 |
---|---|
114 | |
105 | |
78 | |
68 | |
63 |
User | Count |
---|---|
148 | |
107 | |
106 | |
84 | |
70 |