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 September 15. Request your voucher.

Reply
Vallirajap
Resolver III
Resolver III

Multi Select Slicer

Hi Team,


I stuck to one scenario. which is when I select more than one in a slicer, it is not working. Below, I list out the details.

 

I have one disconnected table, like below.

Vallirajap_0-1721910313037.png

using this table to control a measure using dax

1. Based on grade I have 1 measure [MaxSalaryByGrade].
2. Based on the function, I have 1 measure [MaxSalaryByFunc].
3. Based on the OU I have 1 measure [MaxSalaryByOU].

 

Now I create another measure to interact with the measure using the above table, like Below.

Max = SWITCH( TRUE(),
             SELECTEDVALUE('Currency'[Index]) =4, [MaxSalaryByGrade],
             SELECTEDVALUE('Currency'[Index]) =5, [MaxSalaryByFunc],
             SELECTEDVALUE('Currency'[Index]) =6, [MaxSalaryByOU])

Now the measure will interact perfectly with the above table. When I try to add on another one, like when I click "Grade and OU" in a slicer, at the same time, the Max measure displays another measure [MaxSal_G&O].
So that I can rewrite the query below,

Max =  SWITCH( TRUE(),
                 SELECTEDVALUE('Currency'[Index]) = 4 && SELECTEDVALUE('Currency'[Index]) = 6, [MaxSal_G&O],
                 SELECTEDVALUE('Currency'[Index]) =4, [MaxSalaryByGrade],
                 SELECTEDVALUE('Currency'[Index]) =5, [MaxSalaryByFunc],
                 SELECTEDVALUE('Currency'[Index]) =6, [MaxSalaryByOU])

but this measure does not display any value. why it began like this. 
how to achieve this goal.

 

Thanks in advance.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Vallirajap , try like

Max = SWITCH( TRUE(),
countrows(interset(values('Currency'[Index]), {4,6})) =2, [MaxSal_G&O],
SELECTEDVALUE('Currency'[Index]) =4, [MaxSalaryByGrade],
SELECTEDVALUE('Currency'[Index]) =5, [MaxSalaryByFunc],
SELECTEDVALUE('Currency'[Index]) =6, [MaxSalaryByOU])

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Vallirajap , try like

Max = SWITCH( TRUE(),
countrows(interset(values('Currency'[Index]), {4,6})) =2, [MaxSal_G&O],
SELECTEDVALUE('Currency'[Index]) =4, [MaxSalaryByGrade],
SELECTEDVALUE('Currency'[Index]) =5, [MaxSalaryByFunc],
SELECTEDVALUE('Currency'[Index]) =6, [MaxSalaryByOU])

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
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.