cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills 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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors