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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
EvH
Frequent Visitor

Slicer Selection based on another Slicer Selection

I have a requirement to filter a slicer using another slicer. I have two slicers, Company Code and Currency Selection as shown below.  The requirement is when I select one company the Currency Selection should display the three currency options, however, when I select more than one company, Local Curr should disappear. If possible, Local Curr should appear at the top when only one company is selected. I tried several DAX options and cannot solve this, your assistance will be greatly appreciated.

EvH_0-1673947831060.png

 

1 ACCEPTED SOLUTION
EvH
Frequent Visitor

Thank you very much I will give it a go and let you know.

View solution in original post

4 REPLIES 4

I would do it like that : 

 

nb_selected =
IF( Sheet1[Currency] = "Local Curr"
    , IF(ISFILTERED(Sheet1[CoCd]), COUNTROWS(VALUES(Sheet1[CoCd])),1)
    , 1
)
 
The goal is to filter the slicer with nb_selected = 1 only for currency Local.
 

Thanks Thomas

EvH
Frequent Visitor

Thank you very much I will give it a go and let you know.

amitchandak
Super User
Super User

@EvH , for that you can remove all values from the slicer

 

create a measure like

 

if( calculate(distinctcount(Table[Company]), allselected()) >2, 0, 1)

 

Use a visual level filter and check for value =1

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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