Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
AgoZ_KH
Resolver I
Resolver I

Distinct Count Grand Total by column dispaly wrong numbers

Nice day to all!!

I came across the problem of totals in a column calculated with distinct count. I have a table with few columns.

 

WBS is a (univocal) code for a project; Uid is a univocal number for users; any WBS can have more than one user associated.


My scenario is like the figure here:

 

Immagine2.jpg

 

My problem is that the column total is 52 while the sum should be equal to 358 !! 

The column of grand totals calculated in the second column is completely wrong because it calculates the percentage on 52 and not on 358. 

I have tried some DAX formulas suggested in other Threads for summarize values of the distinct count column, but I always get the same result: the total sum is either the one in the column with Distinct count or the one summing the counts.

How can I solve my problem ??

Thanks in advance for help or suggestion!!

 

1 ACCEPTED SOLUTION

Hi @v-danhe-msft, thanks for the suggestion.

 

I'd read this the post, but my problem seem to be slightly different. My problem was to summarize all the distict count values.

 

I tryed the proposed solution used here:

https://community.powerbi.com/t5/Desktop/DAX-Distinct-count-Total-in-table-to-be-sum-of-distinct-cou...

 

and it worked fine!!

 

Thanks to Community very very useful!

Regards

Ago

View solution in original post

2 REPLIES 2
v-danhe-msft
Employee
Employee

Hi @AgoZ_KH,

From your description, it seemed a common issue about wrong total measure, you could refer to below link:

https://community.powerbi.com/t5/DAX-Commands-and-Tips/Dealing-with-Measure-Totals/td-p/63376

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-danhe-msft, thanks for the suggestion.

 

I'd read this the post, but my problem seem to be slightly different. My problem was to summarize all the distict count values.

 

I tryed the proposed solution used here:

https://community.powerbi.com/t5/Desktop/DAX-Distinct-count-Total-in-table-to-be-sum-of-distinct-cou...

 

and it worked fine!!

 

Thanks to Community very very useful!

Regards

Ago

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.