Forum Discussion
Filter single value in slicer from multiple values inside string
- 3 years ago
Hi Anonymous ,
Try like below:
Find = VAR sel = SELECTEDVALUE ( Slicer[Slicer] ) VAR find_ = SEARCH ( sel, MAX ( 'Table'[Data] ),, -1 ) RETURN IF ( find_ <> -1, 1, 0 )If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous ,
Try like below:
Find =
VAR sel =
SELECTEDVALUE ( Slicer[Slicer] )
VAR find_ =
SEARCH ( sel, MAX ( 'Table'[Data] ),, -1 )
RETURN
IF ( find_ <> -1, 1, 0 )
If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you so much!
It is working perfectly fine. Just for curiosity, why did you use MAX () inside of SEARCH?
I'm still learning and mastering the use of Variables inside DAX and trying to get used to everything in it.