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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.