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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

CALCULATE while ignoring 1 filter and identifying a table filter

Hi, 

I`m trying to create a sum using CALCULATE that ignores filters from a certain column (a certain slicer) but I also need to identtify a filter from other column within the CALCULATE.

What I have now: 
Measure=

CALCULATE(SUM('view'[Value]),FILTER('view','view'[Y/N]="Y"))
This is affected by my slicer which is YEAR.
How can I change this measure to not be impacted by the YEAR slicer?

Edit:
I can also use this to ignore the filter but then lose my [Y/N] Filter:
CALCULATE(SUM('view'[Value]),All('view'[YEAR])

I guess the question becomes, how to combine these two measures?


1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 

you can use both

=
CALCULATE (
SUM ( 'view'[Value] ),
KEEPFILTERS ( 'view'[Y/N] = "Y" ),
ALL ( 'view'[YEAR] )
)

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 

you can use both

=
CALCULATE (
SUM ( 'view'[Value] ),
KEEPFILTERS ( 'view'[Y/N] = "Y" ),
ALL ( 'view'[YEAR] )
)

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.