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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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