Forum Discussion
Anonymous
3 years agoNot applicable
Need help in DAX
Hello All. Below I am attaching a screenshot of the slicer of my report: In this Slicer, I have selected "closed", "resolved " and "cancelled". so, whenever i select these three options(clo...
- 3 years ago
Hi Anonymous ,
Please follow these steps:
(1) Create a new column measureFLAG = IF ( ISFILTERED ( 'Status'[state] ), IF ( "Closed" IN VALUES ( 'Status'[state] ) && "Cancelled" IN VALUES ( 'Status'[state] ) && "Resolved" IN VALUES ( 'Status'[state] ), 0, 1 ), 1 )
(2)Add filtering(3)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-jialluo-msft
Community Support
3 years agoHi Anonymous ,
Please follow these steps:
(1) Create a new column measure
FLAG =
IF (
ISFILTERED ( 'Status'[state] ),
IF (
"Closed"
IN VALUES ( 'Status'[state] )
&& "Cancelled"
IN VALUES ( 'Status'[state] )
&& "Resolved" IN VALUES ( 'Status'[state] ),
0,
1
),
1
)
(2)Add filtering
(3)Final output
Best Regards,
Gallen Luo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous3 years agoNot applicable
v-jialluo-msft Thank you so much. It worked in my report.