Forum Discussion
Dave805533
3 years agoNew 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 ...
Dave805533
3 years agoNew Member
Hi DimaMD , Nope both are columns.
DimaMD
Solution Sage
3 years agoHi, Dave805533 try it Colum
Filter = IF(AND([EC] = "Yes", [BARR] = "Yes"), "EC and BARR", IF([EC] = "Yes", "EC", IF([BARR] = "Yes", "BARR", "None")))
- Dave8055333 years agoNew Member
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.
- DimaMD3 years ago
Solution Sage
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
- Dave8055333 years agoNew Member
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.