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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
raulopez
Frequent Visitor

Distinct count table

Greetings! I have a Power Bi table with the document total with distinctive count, but when adding any of the fields from the same table to the Power BI table type display, it does not match the distinctive total. (sex, area, month, etc.). The aggregate field sums continue to add distinctively and not by reason of the grand total of the distinctive count. Here are 2 examples, the first wrong and the second how it should show the totals when adding fields to the visualization, it should be noted that I am using a filter for year and semester that affects the visualization.
Applied measure: unique data = DISTINCTCOUNT ('TABLE' [ID])
Example 1: Applying filter year: 2020 Semester: S2
filtro.jpg
That's wrong, the distinctive total should be 6565, based on the distinctive count in the table. I don't know if the duplicate dates field in the table can affect these results.
1.png
Example 2:
Applying filter year: 2021
Semester: S1
It is correct to add the Female + Male values ​​coincide with the overall distinctive total of the table.
1.jpg

Thanks!

 

 
 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@raulopez m Th total in the first visual seems correct, it can be less than and equal to the sum of line-level total in case of countdistinct. As grand total is calculated again

 

In case you think line level values are wrong

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@raulopez m Th total in the first visual seems correct, it can be less than and equal to the sum of line-level total in case of countdistinct. As grand total is calculated again

 

In case you think line level values are wrong

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

I share the pbix, thanks!
https://github.com/orlapez/API

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.