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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Shakti22
Regular Visitor

Slicer for multiple columns

I'm working with a senario in which I need to create single slicer for multiple columns, I have tried few DAX quaries with the help of similar questions asked on forum but I was unable to make that work.

 

Below is my data view on which I'm working

 

Brandtop 10 pertop 20 pertop 30 pertop 40 per
B10001
B21111
B30111
B40011
B50001

 

I am looking for solution in which I can select Top 10, Top 20 or Top 40 from filter to reflect only those brands in various charts which denotes 1 in correspond to the selection.

 

Please help.

1 ACCEPTED SOLUTION
v-xjiin-msft
Solution Sage
Solution Sage

@Shakti22

 

In your scenario, to achieve your requirement. You can refer to following steps:

 

1. Unpivot your source table columns. To make them as fields in Slicer.

Go to Edit Queries -> Choose your source table and select column Brand -> Go to Transform option, find Unpivot Columns and choose Unpivot other columns:

 

1.PNG

 

2. Close & Apply. Then you can simply create Slicers:

 

2.PNG3.PNG

 

Thanks,
Xi Jin.

View solution in original post

2 REPLIES 2
v-xjiin-msft
Solution Sage
Solution Sage

@Shakti22

 

In your scenario, to achieve your requirement. You can refer to following steps:

 

1. Unpivot your source table columns. To make them as fields in Slicer.

Go to Edit Queries -> Choose your source table and select column Brand -> Go to Transform option, find Unpivot Columns and choose Unpivot other columns:

 

1.PNG

 

2. Close & Apply. Then you can simply create Slicers:

 

2.PNG3.PNG

 

Thanks,
Xi Jin.

MattAllington
Community Champion
Community Champion

When you load the data, unpivot it before it is loaded. Click the brand column and then select “unpivot other columns”. You can then place a slicer on the new attribute column. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.