Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Filter single value in slicer from multiple values inside string

Hi guys,   I am having a hard time in trying to figure out how to filter a value inside a string based on a single value slicer selection with DAX. I know I can get my job done in M with pivoting s...
  • v-henryk-mstf's avatar
    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.