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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Slicer filter multiple columns in a table

I have created a Slicer to control/filter a table.  

i have a table like below, and i use column Measure in the slicer
chriscg28_0-1639446097889.png
  chriscg28_1-1639446178520.png

 

then i created a measure like below, and i use this measure in the table visual.  but it only filter one column at a time.  how do i change the dax in order to enable the multiple filter.

 

Slicer selection =
VAR MySelection =
SELECTEDVALUE('Disconnect table'[Measure], 'RDS_FL_FILE'[Total_ep])
RETUrn
SWITCH(
TRUE(),
MySelection = "Total EP", [Total_ep],
MySelection = "%EP", [%EP],
MySelection = "Total ECY", [Total_ecy],
MySelection = "%ECY", [%ECY],
[Total_ep])

 

as you can see, two values were selected in the slicer, but the table only shows one column.  how do i edit the dax to enable multiple value return?  Thank you!

chriscg28_3-1639446545085.png

 


 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , That is possible using calculation groups, you need external tool for that
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
OwenAuger
Super User
Super User

Hi @Anonymous 

If you want to see a similar layout but with a column for each "Measure" selected, I would suggest you switch to a Matrix visual, and place "Measure" in the Columns field well.

 

Does that work?

 

Regards,

Owen

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
Anonymous
Not applicable

Unfortunately switching to matrix didn't work.  I think the DAX needs work, SELECTEDVALUE only return one value, but I don't know how. 

amitchandak
Super User
Super User

@Anonymous , That is possible using calculation groups, you need external tool for that
https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thank you.  I'll look into it and see if it fits what I try to accomplish. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.