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

Why doesn't REMOVEFILTERS work?

I have a simple formula that calculates the incident count per month, which is then broken down by our defined week of the month (all months have W1, W2, W3, & W4).  Works great.

 

Avg Count per month =
'Incident Measures'[_Inc Count] / [_Count of Months]
 
The problem is I need this to calculate the counts while ignoring the date slicer on the page.  I've tried using REMOVEFILTERS and ALL and nothing has worked:
Avg Count per month - All months =
CALCULATE('Incident Measures'[_Inc Count] / [_Count of Months], REMOVEFILTERS('DATE Table'[Year Month Name]))
 
where "Year Month Name" is the column from the related date table that is the date slicer.
 
I have been fighting this for 3 days and am no closer to a solution.  Note: I cannot use Edit Interactions because the data is actually going into a cluster chart with other data that does need to be affected by the slicer.
3 REPLIES 3
Whitewater100
Solution Sage
Solution Sage

Hi:

Can you try:

AVERAGEX(ALL('DATE Table'[Year Month Name])),[Inc Count])

I hope this helps!
daXtreme
Solution Sage
Solution Sage

If you have a date table, then probably your Year Month Name column is sorted by another column, right? If that's the case, you have to remove the filter not only from the field itself but also from the field by which the field is sorted. To see what happens in your code you can use the Analyzer built in to Power Query. Extract the query and see what happens in there. I'm relatively sure it's to do with the sorting field.

ValtteriN
Super User
Super User

Hi @Anonymous ,

Try using ALL in the following manner:

CALCULATE('Incident Measures'[_Inc Count] / [_Count of Months], ALL('DATE Table'))


I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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