Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
AishwaryaP_
Regular Visitor

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. 

1 ACCEPTED SOLUTION
v-angzheng-msft
Community Support
Community Support

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:

vangzhengmsft_0-1644906228674.png

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.

View solution in original post

2 REPLIES 2
v-angzheng-msft
Community Support
Community Support

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:

vangzhengmsft_0-1644906228674.png

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.

DataInsights
Super User
Super User

@AishwaryaP_,

 

Try this solution:

 

https://community.powerbi.com/t5/Desktop/Once-Slicer-for-multiple-columns/m-p/430979#M198545 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.