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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sveesam
New Member

How to create multi-column slicer to filter a pivot table ?

Hi,

 

I have a data in excel sheet in pivot table format:

 

UsersABCDE
Prasad10010
Ramana01001
Venkat01101
Dave10011
Uday11100

 

I want a multi-column slicer so that the user can filter records with any combination of A, B, C, D and E columns. 

Example

A = 1 and B = 0 and C = 0 O/P: No. of users: 2 (Prasad, Dave)

B = 1 and E = 1; No. of users:2(Ramana, Venkat)

 

Could someone help how to achieve this in Power BI?

 

Thanks in advance.

3 REPLIES 3
v-jiascu-msft
Employee
Employee

Hi @sveesam,

 

Could you mark the proper answer as a solution please?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

Thinking about this some more, why can't you just use 5 slicers, one for each column?

 

To use the Patient Cohort Quick Measure I believe you are going to need to unpivot your 5 columns and then combine the two resulting columns so that you get something like:

 

Prasad     A - 1

Prasad     B - 0

Prasad     C - 0

...

 

Haven't tried it yet with your data but I think that's one way to approach it.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Greg_Deckler
Super User
Super User

Check out my Patient Cohort Quick Measure here: https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort/m-p/391883

 

It's essentially an AND slicer, instead of OR. Might work for you with some fiddling.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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