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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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