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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
vaishali12
Frequent Visitor

Filtering with Dax

Hi, 

 

I have one table with countries and region.  I would like to select a country and have a table that returns all the countries in the same region as the selected country.  I currently only have a slicer to be able to select a country. 

 

Sample country Table: 

RegionCountry
EuropeGermany
EuropeFrance
EuropeNetherlands
EuropeItaly
AsiaIndia
AsiaChina
Latin AmericaVenezuela
Latin AmericaUruguay

 

Expected output: 

Selected country - Germany

 

RegionCountry
EuropeGermany
EuropeFrance
EuropeNetherlands
EuropeItaly
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @vaishali12 

In SSAS Live mode, it is impossible to create a measure to achieve your goal.

 

I make a test as below.

Create two slicers,

Edit their interactions as below:

9.png10.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @vaishali12 

In SSAS Live mode, it is impossible to create a measure to achieve your goal.

 

I make a test as below.

Create two slicers,

Edit their interactions as below:

9.png10.png

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-juanli-msft
Community Support
Community Support

Hi @vaishali12 

Create another table

Table = SUMMARIZE(Table1,Table1[Country],Table1[Region])

In Table1,

Create measures

Measure = SELECTEDVALUE('Table'[Region])

Measure 2 = IF(MAX(Table1[Region])=[Measure],1,0)

1.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-juanli-msft , 

 

Thank you for the response. I attempted your solution, but it does not work in my case. 

 

I am using a SSAS connection and do not have the option to create new calculated tables. This is what my Modelling tab looks like. 

 

tempsnip.png

 

Do you know if there is an option to do the same with just using measures? Thanks!

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors