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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ibrahimsharaf
Microsoft Employee
Microsoft Employee

how to count distinct strings in a column?

I have a column that contains strings (Client IDs for the visitors of my website), I want to create a Card visualization that counts the number of visitors, so I have to count the distinct ones only, not all the values on the column, for example if I have these values (regardless that those are not client IDs) on my column: Canada, USA, Egypt, Canada, USA, I want the card to contain a number 3 not 5.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Uniques = DISTINCTCOUNT(MyTable[ClientId])

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Uniques = DISTINCTCOUNT(MyTable[ClientId])

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (4,217)