Forum Discussion
msantillan
Helper II
6 years agoDAX - Selecting 2 or more specific slicer values
Is there a way to show data based on two sepcific values selected on a slicer? I have this DAX code: Productive Utilization = SWITCH(true(), SELECTEDVALUE('Resource Slicer Values'[Slicer Opt...
- Anonymous6 years agoTry thisCheck =var first_val="FQC"Var Second_val="RHC"VAr SelectedList=ALLSELECTED('Parameter Location Type'[Location Type])returnSWITCH(TRUE(),first_val in SelectedList || Second_val in SelectedList,1,0)Note: chnage values and column name as per your requirement.I tried above one and working absolutely fine .Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Anonymous
6 years agoNot applicable
Try this
Check =
var first_val="FQC"
Var Second_val="RHC"
VAr SelectedList=ALLSELECTED('Parameter Location Type'[Location Type])
return
SWITCH(TRUE(),first_val in SelectedList || Second_val in SelectedList,1,0)
Note: chnage values and column name as per your requirement.
I tried above one and working absolutely fine .
Thanks & regards,
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
Pravin Wattamwar
www.linkedin.com/in/pravin-p-wattamwar
If I resolve your problem Mark it as a solution and give kudos.
msantillan
Helper II
6 years agoThanks!