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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to remove filters that have been applied to one table, but retain all other filters?

In my report, the users can slice by the dimDate dimension. They can slice by Year, Month, Week, Day, IsWorkingDay, IsMonthEnd, and any combinations of these. They can also slice by other dimensions.

I am writing a measure from a fact table, and I would like to remove all the filters that have been applied to the dimDate dimension (so the measure can look at data from rows from any date), but I want to retain all other filters selected on any other dimension (e.g. I want any selected Accounts, Teams, Departments, Countries, etc to remain in place.)

 

How do I achieve this?

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can create a measure like:

CALCULATE(SUM(TABLE[ABC])), ALL(D_DATE))



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

Proud to be a Super User!



View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

@Anonymous - Can you share the measure formula you are trying to create (jist of it). The specific solution may vary depending on exactly what you are trying to do. If you can share PBIX or sample data to recreate that would be good as well. In general you can use REMOVEFILTERS to get rid of offensive filters or you can use ALL or ALLEXCEPT to also override or change filter context.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Ok. So the meaning of the function ALL(table) is

From the current context, remove every filter from from every field in table, but retain all other filters.

Hi @Anonymous ,

 

Yes,using removefilters function will become more intuitive in your formula. Please refer to https://docs.microsoft.com/en-us/dax/removefilters-function-dax 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Anonymous , One of three method -

calculate(Sum(Table[value]), removefilters(DateTable))
calculate(Sum(Table[value]), all(DateTable))
calculate(Sum(Table[value]), ALLCROSSFILTERED(DateTable))

 

refer: https://www.linkedin.com/pulse/five-recent-power-bi-functions-you-should-use-more-often-amit-chandak

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
camargos88
Community Champion
Community Champion

Hi @Anonymous ,

 

You can create a measure like:

CALCULATE(SUM(TABLE[ABC])), ALL(D_DATE))



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

Proud to be a Super User!



Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors