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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

DISTINCTCOUNT in table is working but in chart NO

Hi,

 

I`m using a measure to calculete de DISTINCT ID I have in a dataset. It works for tables, but not int charts. 

 

#UMD = CALCULATE(DISTINCTCOUNT('Depositos_cliente'[player_id]))
 
Te same measure in a table sums 1, but the same measure en in chart sums 2 🤔
 
esteban_otero_0-1678323106661.png

 

Can anyone help find what I'm doing worng?
2 REPLIES 2
FreemanZ
Super User
Super User

hi @Anonymous 

@it could be that the same id presents in both categories. In table visual, 1 results from filter context, 2023-1 But in stacked bar chart, 2 is the simple sum of two 1s.

Anonymous
Not applicable

It is the same ID. That is my point. The total should always be 1.

 

The table count this ID as 1 although it is present in both categories, but the stacked bar chart shows a total of 2.

How can I fix this?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.