Forum Discussion

vipinbharti121's avatar
vipinbharti121
New Member
5 years ago
Solved

Filter a slicer based on selection in Table

I have one power bi Table : University College Subjects A X Maths, science, sociology B Y Science, History C Z PE, Arts, ED Here subjects column is concatenated.  There is o...
  • v-yingjl's avatar
    5 years ago

    Hi vipinbharti121 ,

    Basically visuals could not filter slicers so you can use the subjects field to create another table visual as a 'slicer'.

    Create this measure, put it in the visual filter and set its value as 1:

    Control =
    IF (
        COUNTROWS (
            FILTER (
                'Table',
                CONTAINSSTRINGEXACT ( 'Table'[Subjects], SELECTEDVALUE ( Subjects[Subjects] ) )
            )
        ) > 0,
        1,
        0
    )
    

    Attached a sample file in the below, hopes to help you.

     

    Best Regards,
    Yingjie Li

    If this post helps then please consider Accept it as the solution to help the other members find it more quickly.