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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Newrr
Frequent Visitor

Slicer to filter by column and by row.

Hi,

I have a table like the one below.

 

 Store1Store2Store3Store4Store5Store6Store7Store8Store9
ProductAYesNoNoYesYesNoNoYesYes
ProductBYesYesYesNoNoNoNoNoNo
ProductCYesYesNoYesYesYesNoYesYes
ProductDYesYesNoNoYesYesYesYesYes
ProductEYesNoYesYesYesNoYesYesNo
ProductFNoYesYesNoNoNoNoNoNo
ProductGYesNoYesYesNoYesYesNoYes
ProductHYesNoYesNoNoYesNoNoYes
ProductIYesYesYesYesNoNoYesNoNo
ProductJNoYesYesYesYesNoYesYesNo

 

I would like to create a slicer which allows to choose a store or a product to show:

:a single store with only 'Yes' across all products.

:a single product with only 'Yes' across all stores.

 

The result should look like this.

 

 Store1Store4Store5Store8Store9
ProductAYesYesYesYesYes

 

 Store1
ProductAYes
ProductBYes
ProductCYes
ProductDYes
ProductEYes
ProductGYes
ProductHYes
ProductIYes

 

Thank you for your help.

Best regards.

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Newrr , Better to unpivot the table and have store in rows, and then you can filter yes and display it in matrix

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

https://radacad.com/pivot-and-unpivot-with-power-bi

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
Newrr
Frequent Visitor

Thanks @amitchandak  for your help. It worked. 

amitchandak
Super User
Super User

@Newrr , Better to unpivot the table and have store in rows, and then you can filter yes and display it in matrix

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

https://radacad.com/pivot-and-unpivot-with-power-bi

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Kudoed Authors