Forum Discussion
Anonymous
5 years agoNot applicable
DAX multiple selectedvalue slicer
Hi, Couldn't find a previous post for this. Say we have a table called Number When both 1 and 2 are selected in slicer, I want the text to read "1 and 2 are found". Why is the foll...
- 5 years ago
Hi. The problem is that the 1 is not evaluated in that statement. It's only evaluating the 2. That's why it works with the two.
Try adding the condition for both:
Measure = IF ( 1 IN VALUES('Table'[Column1]) && 2 IN VALUES('Table'[Column1]) , "1 and 2 selected" , "False statement" )Hope this helps,
ibarrau
5 years agoSuper User
Hi. The problem is that the 1 is not evaluated in that statement. It's only evaluating the 2. That's why it works with the two.
Try adding the condition for both:
Measure =
IF (
1 IN VALUES('Table'[Column1])
&& 2 IN VALUES('Table'[Column1])
, "1 and 2 selected"
, "False statement"
)
Hope this helps,
Anuja_Chaudhari
2 years agoHelper I