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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.