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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
powerbiexpert22
Impactful Individual
Impactful Individual

Keepfilter use case

I have gone through below and understood what Keepfilter does however I am not sure what is the use case of Keepfilter, in which scenario we should use keepfilter function

 

https://www.youtube.com/watch?v=M-a7sgpHaFE&pp=ygUKa2VlcGZpbHRlcg%3D%3D

 

 

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @powerbiexpert22 

A very basic example here, lets say I want to show all Non lockdown years.

So I apply a filter says DO NOT return 2020 and 2021 data.

The issue is DAX removes the existing year filters and then applies my NOT filter.

Each column is returning the TOTAL of all years NOT 2020, 2021.

SamWiseOwl_0-1736851375214.png

 

Clearly what I meant was, keep the original year filters and don't show data for 2020 and 2021.
So I tell it to keep the table to keep the original filters.

SamWiseOwl_1-1736851506301.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

2 REPLIES 2
powerbiexpert22
Impactful Individual
Impactful Individual

Thanks a lot @SamWiseOwl 

SamWiseOwl
Super User
Super User

Hi @powerbiexpert22 

A very basic example here, lets say I want to show all Non lockdown years.

So I apply a filter says DO NOT return 2020 and 2021 data.

The issue is DAX removes the existing year filters and then applies my NOT filter.

Each column is returning the TOTAL of all years NOT 2020, 2021.

SamWiseOwl_0-1736851375214.png

 

Clearly what I meant was, keep the original year filters and don't show data for 2020 and 2021.
So I tell it to keep the table to keep the original filters.

SamWiseOwl_1-1736851506301.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.