Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

One Slicer for multiple columns

Hello Guys,   short question: How can I do a Slicer with multiple columns? Is there maybe a way with the hierarchie slicer?   If I do a single slicer for each topic, the user would get confused b...
  • v-janeyg-msft's avatar
    v-janeyg-msft
    5 years ago

    Hi, Anonymous 

     

    You can create a measure,then use in in visual filter pane.

    Like this:

    Measure =
    IF (
        SELECTEDVALUE ( 'Table'[Topic1] )
            IN DISTINCT ( 'Table 2'[Topic1] )
                || SELECTEDVALUE ( 'Table'[Topic2] )
                    IN DISTINCT ( 'Table 2'[Topic1] )
                        || SELECTEDVALUE ( 'Table'[Topic3] ) IN DISTINCT ( 'Table 2'[Topic1] ),
        1,
        0
    )
    

     

    Did I answer your question ? Please mark my reply as solution. Thank you very much.
    If not, please upload some insensitive data samples and expected output.

     

    Best Regards

    Community Support Team _Janey