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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
manav_agarwal
New Member

How do I dynamically change a measure value based on a selected value and comparing it a column?

Hi,

 

I am new to Power BI and hence confused with how to approach this problem.

 

I have 2 Tables one containing Information about stores across the globe and one containing sales information.

Now I have 5 countries namely

USA

France

UK

Germany

Australia

 

Now suppose I select 'USA' in the filter (which will contain only one value),

I want a DAX that can label all sales in 'USA' as 'Domestic' and everying else as 'International'.

Likewise when I select 'UK', 'UK' becomes 'Domestic' and everything else is labelled as 'International'.

 

Is this possible to achieve?

1 REPLY 1
stevedep
Memorable Member
Memorable Member

What is the requirement behind this requirement if I may ask?

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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