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
benyhh
Frequent Visitor

ALL/REMOVEFILTERS not working when using certain filters

As the title suggest, ALL/REMOVEFILTERS does not work when I apply certain filters. This problem occurs with my date table, which has columns including these.

DateIsWorkday RelativeDay Week Year

01.01.2023 

No-412023
02.01.2023 No-312023
03.01.2023 Yes-212023
04.01.2023 Yes-112023

 

I need a measure that returns the first date in the filter context, ignoring the IsWorkday filter:

 

MinDate =
CALCULATE(
    MIN(Date[Date]),
    REMOVEFILTERS(Date[IsWorkday])
)

 

 

To test this, I make a table with Date[Week] and MinDate, using filters Date[Year]=2023 and Date[IsWorkday]=Yes. 

WeekMinDate
101.01.2023

 

 

The problem is that filtering on RelativeDay is very common in my organization, and when I do that, the REMOVEFILTERS does not work as intended anymore. The filters are now Date[Year]=2023, Date[IsWorkday]=Yes, and Date[RelativeDay]<0.

WeekMinDate
103.01.2023

 

I am using a direct query to a published dataset in my organization. Any help to figure out the problem is appreciated. Please let me know if you need additional information.

2 REPLIES 2
amitchandak
Super User
Super User

@benyhh , I tried, it worked

amitchandak_0-1689005138462.png

 

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

Yes, it should work, and this is why I need help to figure out what the problem is.

The data I provided was just a sample and the original model is bigger and more complex.

 

Below I show the Date, IsWorkday, and RelativeDay in a table. Then I show the measure ignoring the "IsWorkday" slicer and returning 02.01.2023. When I apply RelativeDay less than -3, the measure does not ignore the slicer anymore.

benyhh_2-1689059406581.png

 

benyhh_0-1689059372813.png

benyhh_4-1689059484365.png

 

 

All the columns used in the tables and filters are in the same date table.

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