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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Sarutra
Helper I
Helper I

Ignoring external date filter

Hello,

I have the measure 'Unpaid Full Invoice Amount TREATAS', but I can't get it to return a result such that if I apply an external filter for January 2024, the visualization displays all values from January 31, 2025 to January 1, 2024. Do you have any suggestions on how to resolve this?

Skolu ataskaita VIG 2025 NEW4 - TEST2.pbix

 

Arturas

1 ACCEPTED SOLUTION

Hi,

I have solved a similar question in the attached PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

6 REPLIES 6
v-echaithra
Community Support
Community Support

Hi @Sarutra ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra E.

v-echaithra
Community Support
Community Support

Hi @Sarutra ,

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,

Chaithra E.

v-echaithra
Community Support
Community Support

Hi @Sarutra ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra E.

Sarutra
Helper I
Helper I

Thank you for the answer. I tried various ways to remove the external date filter, but I wasn’t able to get the correct result. Could you please provide a DAX example? I want to remind you that the goal is: if the external filter is set to 2025-01, I need to get results from 2025-01-31 to 2024-01-01, and if the filter is set to 2024-12, I need to get results from 2024-12-31 to 2024-01-01.

 

 

arturas

Hi,

I have solved a similar question in the attached PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
rohit1991
Super User
Super User

Hi @Sarutra

 

To ignore an external date slicer and always return values from a specific fixed range say from January 1, 2024 to January 31, 2025, regardless of any user-applied filters you'll need to build a measure that explicitly overrides the filter context.

You can write this DAX measure :

 

FixedDateTotal = 
CALCULATE (
    SUM ( 'Invoice'[Amount] ),
    REMOVEFILTERS ( 'Date'[Date] ),
    'Date'[Date] >= DATE (2024, 1, 1) &&
    'Date'[Date] <= DATE (2025, 1, 31)
)

You can try these steps:

 

  • REMOVEFILTERS('Date'[Date]) clears any external slicer or visual filter on the date field.

  • The date range condition inside CALCULATE then reapplies a fixed filter from 2024-01-01 to 2025-01-31.

  • This ensures the measure always returns values for your desired date window even if the report user filters to something else like 2023 or 2026.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors