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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Using Slicer to turn on and off a filter

Hi,

I have a dataset in which I would like to filter some rows with a specific identifier(MLs) which exist in a different column. Is there a way to use a slicer to filter out the rows with such identifier? (e.g.  like an On and Off button) so when you use a chiclet slicer to choose "With MLs" it includes the rows with this identifier and when you don't choose it, it shows you all your rows?

Thanks

@MFelix 

5 REPLIES 5
parry2k
Super User
Super User

@Anonymous so does your tables look like this

 

ML    ML FIlter

1         2

2

3

4         5

5

6

 

So when fiter is turned on , you want to exclude rows where ML is 2 and 5 otherwise show all rows.

 

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  it is similar to what I asked except the fisrt column is not sorted in order, so it would be like:

1  

45      ML

2  

10      ML

5

3

19       ML

901

12

67

How to do it?

@Anonymous doesn't matter if first column is in order or not. I'm not sure give the data example what you want the output to be? Can you please clarify?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k  the final visual is a gauge and I'd like to have a chiclet with two condition: one condition is with MLs and another without them. The chiclet should be always in one of two available conditions, with MLS included and without MLs.

I think it is now completely clear if you really can help...

Thanks

Anonymous
Not applicable

@Anonymous  please let me have your reply?

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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