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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Coens
New Member

Removefilters not working with Date Hierarchy

Hi all,

 

Newbie at Power BI here, sorry if my question doesnt make much sense...

 

I have a measure that calculates/stores the lowest price paid for a product throughout time. For this I use REMOVEFILTERS on my invoice dates. 

 

I have a matrix in which the invoice dates are the colums, this works fine, but as I have many invoice dates, I want to use date hierachy. When I select date hierarchy however, the REMOVEFILTERS does not seem to work--> the lowest price paid is then the lowest price in a year/month.

 

Hope this question makes sense? And I hope someone knows what I can do to solve this. 

 

Thanks a bunch! 

 

Coen

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @Coens ,

 

Firstly glad to know your original issue has been solved by yourself. So now your question is the differences between ALLEXCEPT() and REMOVEFILTERS(), right?

 

To my knowledge,ALLEXCEPT is mostly used along with CALCULATE to remove all filters from a table, except for some columns.

 

And sometimes ,REMOVEFILTERS is just an alias of ALL , so it works just the same.Basically, ALL returns a table including all rows, ignoring any filters that might have been applied.

However, when ALL is used as a filter argument of CALCULATE or CALCULATETABLE, it behave totally differently: it removes filters from the table and does not return a table.

To alleviate this confusing behavior of ALL, REMOVEFILTERS was introduced to replace ALL when it is used inside CALCULATE.

 

 

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

View solution in original post

3 REPLIES 3
v-eqin-msft
Community Support
Community Support

Hi @Coens ,

 

Could you tell me if my post helps you? If it is, kindly Accept it as the solution to make the thread closed. More people will benefit from it.

 

Best Regards,
Eyelyn Qin

v-eqin-msft
Community Support
Community Support

Hi @Coens ,

 

Firstly glad to know your original issue has been solved by yourself. So now your question is the differences between ALLEXCEPT() and REMOVEFILTERS(), right?

 

To my knowledge,ALLEXCEPT is mostly used along with CALCULATE to remove all filters from a table, except for some columns.

 

And sometimes ,REMOVEFILTERS is just an alias of ALL , so it works just the same.Basically, ALL returns a table including all rows, ignoring any filters that might have been applied.

However, when ALL is used as a filter argument of CALCULATE or CALCULATETABLE, it behave totally differently: it removes filters from the table and does not return a table.

To alleviate this confusing behavior of ALL, REMOVEFILTERS was introduced to replace ALL when it is used inside CALCULATE.

 

 

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

Coens
New Member

Well I kinda have it solved by using ALLEXCEPT instead of REMOVEFILTERS but it's still weird behaviour no?

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.