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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
hamzaou
New Member

slicer for filtering out values

I need to filter out values based on the slicer. So the slicer has country names. What I want is that when I click on Belgium and on Netherlands it should filter out all the Belgium and Netherlands data, but keep the rest of the countries.

How do I go about this? I tried using a measure and then filtering on it, but it did not work.

3 REPLIES 3
suparnababu8
Super User
Super User

Hi @hamzaou 

 

Bu using select all you can achieve it.

 

Step-1

Turn on 'Select All' option

suparnababu8_0-1726745003379.png

Stpe-2

In slier check "select All" then uncheck Belgium and Netherlands.

suparnababu8_1-1726745081867.png

 

Hope this will help you

 

Idrissshatila
Super User
Super User

Hello @hamzaou ,

 

what I suggest is to have a selected all in the slicer and uncheck the countries that you don't want to show.

 

subscribe to my youtube channel https://www.youtube.com/@PowerBISolution

 



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!




bhanu_gautam
Super User
Super User

@hamzaou , You can try below steps

 

First, create a calculated column that flags the countries you want to exclude based on the slicer selection.

ExcludeCountry =
IF(
'Table'[Country] IN {"Belgium", "Netherlands"},
1,
0
)

 

Alternatively, you can create a measure if you prefer to use it in your visualizations.
ExcludeCountryMeasure =
IF(
SELECTEDVALUE('Table'[Country]) IN {"Belgium", "Netherlands"},
1,
0
)

 


Apply the Filter: Use the calculated column or measure to filter your data in the visualizations. For example, you can add a visual-level filter to exclude the flagged countries.

If you used a calculated column, you can add a filter to your visualizations where ExcludeCountry is 0.
If you used a measure, you can add a filter to your visualizations where ExcludeCountryMeasure is 0.
Adjust the Slicer: Ensure that your slicer is set up to allow multiple selections and that it is not affecting the calculated column or measure directly.

By following these steps, you should be able to filter out the data for Belgium and Netherlands while keeping the rest of the countries in your Power BI report.




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.