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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Dave805533
New Member

Adding slicer for multiple columns in Power BI

Hello Everyone,

 

I am new to Power BI. I am trying to add a slicer to a table visualization that I had created. What I want to achieve here is, I have a table with three columns as given below. I want the table to be filtered by clicking a slicer. The slicer should contain only EC or BARR.

 

When the user selects the slicer below is the expectation:

1) User selects EC, the table should only show names with EC as "Yes" 

2) User selects BARR, the table should only show names with BARR as "Yes"

3) User selects both EC and BARR, the table should only show names which has both EC and BARR as "Yes"

4) If no option is selected, the table should show all the rows

 

NameECBARR
AnnaYesYes
John Yes
MarkYes 
LinanaYesYes
Benny  
BenjaminYes 
Arnaud Yes
HenryYes 
Benny Yes
MilkyYes 
9 REPLIES 9
Idrissshatila
Super User
Super User

Hello @Dave805533 ,

 

yes, you can use field parameters to reach what you're asking for.

 

refer to this documentation to learm more about field parameters https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Hi @Idrissshatila , Thank you for the response. I tried doing it but, all the rows are listed regardless if there is Yes in the row or not. I want to display only the rows with Yes in it.

DimaMD
Solution Sage
Solution Sage

Hi, @Dave805533 EC and BARR it measure? 

 

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Hi @DimaMD , Nope both are columns.

Hi, @Dave805533  try it Colum

Filter = IF(AND([EC] = "Yes",  [BARR] = "Yes"), "EC and BARR", IF([EC] = "Yes", "EC", IF([BARR] = "Yes", "BARR", "None")))

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Hi @DimaMD , Thank you for the response. This will have an extra option right? I am looking for a way wherein it should only show 'EC' and 'BARR' in the slicers.

 Yes it new colum, take it out of proportion 

 

IF(AND([EC] = "Yes", [BARR] = "Yes"), "EC and BARR",

 

and at the end of the parenthesis

@Dave805533

DimaMD_0-1690187833812.png

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

If I select BARR and EC it shows all rows that has either BARR or EC as 'Yes' right? What I want is, when user selects both EC and BARR, only the row that has 'Yes' on both columns should show. 

 

In the example from the screen shot, only 'Linana' and 'Anna' should be shown.

@Dave805533 If you want to see the data in which both indicators are "Yes", then use the above condition that I provided

Filter = IF(AND([EC] = "Yes",  [BARR] = "Yes"), "EC and BARR", IF([EC] = "Yes", "EC", IF([BARR] = "Yes", "BARR", "None")))

__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors