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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Never filter a specific row when using a year filter

Hey, 

 

I have a problem that i assume is extremely easy to fix but i can't get my head around it. 

 

I have a Year column, 2021, 2022 or 2023, which i a want to filter on. 

 

I also have another text column, with two values "Filter" and "Don't Filter". 

(The "Don't Filter" rows do have a Year value assocaited with them at the moment but this can be blanked or Nulled if needed)

 

I want to be able to filter my table based on the Year column, but i never want to filter out the "Don't Filter" rows. 

 

How do i go about this?

 

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , A measure

 

calculate(Sum(Table) , Filter(Table, Table[Column] <> "Don't Filter" ))

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

Hi, 

Not sure what the code above should do. Also, i tried it and it says i can't use SUM() over a full table, only a column. 

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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