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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
maneschr2022
Helper II
Helper II

Filter values of slicers

Hi all,

 

I´m trying to work for the proper DAX to filter the values of my slicer as I don´t want to show all the slicer values options for a visual that has much fewer values than the slicer is showing.

 

I`ve been reading that is possible to use a Dax for that and add it as a filter on the slicer visual.

 

I tried to use the below DAX on the "Filter on this visual" for the slicer but the values of the slicer are not reducing to show just Red, Yellow and Green.

 

DAX:

Filter colours= CALCULATE(COUNTROWS(TABLE),FILTER(TABLE,TABLE[COLUMN] IN { "Red", "Yellow","Green"}))

 

Thanks in advance for help!

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi, @maneschr2022 

If you are using a calculated column, please try the following formula:

Filter colours =
IF ( 'TABLE'[COLUMN] IN { "Red", "Yellow", "Green" }, 1, 0 )

Then drag this field  to visual filter pane as below:

1.png

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi, @maneschr2022 

If you are using a calculated column, please try the following formula:

Filter colours =
IF ( 'TABLE'[COLUMN] IN { "Red", "Yellow", "Green" }, 1, 0 )

Then drag this field  to visual filter pane as below:

1.png

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@maneschr2022 , Use this measure in the visual level filter of slicer and check for non blank value

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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.