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
Sherbman
Frequent Visitor

Insert a slicer based on multiple columns

So I work at an insurance company and we have an excel sheet of provider name and the different insurance company that they are contracted with. 

And the number of columns of insurance companies is around 60. I used power query to upload and transform the data and create slicers for other attributes but I am looking for a way to a create a single slicer for all insurance companies columns and when I click on item it only shows the providers which their value is "Yes" instead of creating like 60 slicers. Can that be done ?

Thanks

 
Provider NameInsurance Co AInsurance Co BInsurance Co CInsurance Co D
Provider 1YesNoNo

No

Provider 2No Yes YesYes
Provider 3NoNoYesYes
Provider 4YesYesYesNo
1 ACCEPTED SOLUTION
JoeBarry
Solution Sage
Solution Sage

Hi @Sherbman 

 

Within Power Query, highlight all columns except Provider Name and right click and choose unpiviot columns. 

JoeBarry_0-1692600490867.png

This will create two new columns 

JoeBarry_1-1692600586337.png

If you need to keep the Providers with No, duplicate the table and call it DIM Providers and then filter the Value column to Yes. In the provider Name column, right click and remove duplicates. Load both tables. Create a One To Many relationship on the Provider Name on both tables.

 

From the DIm Providers Column, add the Provider Name to a Slicer.

 

Thanks

Joe

 

View solution in original post

2 REPLIES 2
JoeBarry
Solution Sage
Solution Sage

Hi @Sherbman 

 

Within Power Query, highlight all columns except Provider Name and right click and choose unpiviot columns. 

JoeBarry_0-1692600490867.png

This will create two new columns 

JoeBarry_1-1692600586337.png

If you need to keep the Providers with No, duplicate the table and call it DIM Providers and then filter the Value column to Yes. In the provider Name column, right click and remove duplicates. Load both tables. Create a One To Many relationship on the Provider Name on both tables.

 

From the DIm Providers Column, add the Provider Name to a Slicer.

 

Thanks

Joe

 

@JoeBarry This is brilliant. Thank you so much. 

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.

Top Kudoed Authors
Users online (8,014)