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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.