Forum Discussion
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.
Thank you very much I will give it a go and let you know.
4 Replies
- amitchandak
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
- Thomas_Daubert
Helper I
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.- EvHFrequent Visitor
Thanks Thomas
- EvHFrequent Visitor
Thank you very much I will give it a go and let you know.