cancel
Showing results for 
Search instead for 
Did you mean: 
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

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

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors