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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Tlotly
Resolver II
Resolver II

Selected value to change to the second filter

Good day.

 

I have two slicers, Region and Zone.  Region is the highest level to Zone i.e. 1 region has multiple zones. Currently, I can display either the selected region or the zone on my card visual, which is perfect.

 

But if both are selected at the same time, I need to display the lowest level only which isthe zone. Is there a way to do this?

Tlotly_1-1686729863050.png

Dax for the measure: 

Measure 3 = var _region = SELECTEDVALUE(Query1[Region Description])
           var _zone = SELECTEDVALUE(Query1[Zone Description])
            var _branch = SELECTEDVALUE(Query1[Branch Name])
return if(ISFILTERED(Query1[Region Description]), _region,
           if(ISFILTERED(Query1[Zone Description]),  _zone,
            if(ISFILTERED(Query1[Branch Name]), _branch
           ," ")))

 

Thank you in advance.

1 ACCEPTED SOLUTION
Adescrit
Impactful Individual
Impactful Individual

Hi @Tlotly 

 

I think you can change the order of the IF statement slightly to make this work as you want

 

Measure 3 = var _region = SELECTEDVALUE(Query1[Region Description])
           var _zone = SELECTEDVALUE(Query1[Zone Description])
            var _branch = SELECTEDVALUE(Query1[Branch Name])
return if(ISFILTERED(Query1[Zone Description]), _zone,
           if(ISFILTERED(Query1[Region Description]),  _region,
            if(ISFILTERED(Query1[Branch Name]), _branch
           ," ")))

 

This way it will check if a zone has been selected first, and if so display the selected zone.


Did I answer your question? Mark my post as a solution!
My LinkedIn

View solution in original post

2 REPLIES 2
Adescrit
Impactful Individual
Impactful Individual

Hi @Tlotly 

 

I think you can change the order of the IF statement slightly to make this work as you want

 

Measure 3 = var _region = SELECTEDVALUE(Query1[Region Description])
           var _zone = SELECTEDVALUE(Query1[Zone Description])
            var _branch = SELECTEDVALUE(Query1[Branch Name])
return if(ISFILTERED(Query1[Zone Description]), _zone,
           if(ISFILTERED(Query1[Region Description]),  _region,
            if(ISFILTERED(Query1[Branch Name]), _branch
           ," ")))

 

This way it will check if a zone has been selected first, and if so display the selected zone.


Did I answer your question? Mark my post as a solution!
My LinkedIn

@Adescrit  thank you very much. It works perfectly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors