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
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
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.

Top Solution Authors