Forum Discussion

AishwaryaP_'s avatar
AishwaryaP_
Regular Visitor
4 years ago
Solved

How to create a slicer using values from multiple columns ?

I have a huge dataset out of which using below 3 columns I want to use in a slicer.  This is a samp-le "Data Dable" excluding other tables.

Q1Q2Q3
215
464
612
727
116
253
152
641
763
435

 

I have another table where I have labels to map to this data "Label Table"

OptionLabel
1A
2B
3C
4D
5E
6F
7G
8H
9I
10J

 

I want to create a slicer where I want to display the labels from Label table and it should filter all data from "Data Table" but it should refer to all  all 3 columns Q1, Q2 & Q3 while filtering a value. eg. If we select "G" in slicer it should filter basis 7 in Q1 & Q2 & Q3 and  show all the values from the data related to this. 

  • Hi, AishwaryaP_ 

    Try this:

    Measure = IF(
        MAX('Data Table'[Q1]) in VALUES('Label table'[Option])||MAX('Data Table'[Q2]) in VALUES('Label table'[Option])||MAX('Data Table'[Q3]) in VALUES('Label table'[Option]),1,0)

    Show items when the measure is 1 in filter pane.

     

    Result:

    Please refer to the attachment below for details.

    Hope this helps.

     

     

    Best Regards,
    Community Support Team _ Zeon Zheng


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

2 Replies