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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors