cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hpayne93
Frequent Visitor

DAX measure - count of unique values

Hi,

 

I need some help with a new measure please.

 

I need to calculate the number of countries 'Contact' [address1:country} my [event participants] are from. 

 

Thanks

1 REPLY 1
amitchandak
Super User
Super User

@hpayne93 , Not very clear

but a measure like below can help

 

distinctcount( 'Contact' [address1:country]) 

 

or

 

countrows(summarize('Contact', 'Contact' [address1:country]) )

 

or

 

countrows(summarize('Contact', 'Contact' [address1:country], 'Contact' [event participants]) )

 

or you can fact and dimensions in summarize

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors