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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
vicky_
Super User
Super User

Measure with TODAY() as a filter isn't working

Hello!

I've got a measure that I use as a date filter - essentially, i'm trying to show the last 3 working days (excluding today) worth of data:

 

Measure = 
var a = CALCULATE(
    NETWORKDAYS(SELECTEDVALUE('Calendar'[Date]), TODAY()), 
    KEEPFILTERS('Calendar'[Date])
) 

return IF(a > 1 && a <;= 4, 
    CALCULATE(DISTINCTCOUNT('Orders'[OrdersID]))
)

 

On my local device, this works as expected. (As in today, is the 2nd March and it's showing me data from the 27th Feb to 1st March) However, when I publish this report, it's still showing me the data from 24th Feb (Friday), 27th Feb (Monday) and 28th Feb. I believe this may be an issue with the time zone of the published report, but I'm not sure how to test or debug this, or possible a caching issue. Does anyone have any suggestions?

 

And yes, I can use the relative date filter, but my client just wants the last 3 working days, which isn't an option in the filters.

1 ACCEPTED SOLUTION
2 REPLIES 2

Legend! Thank you

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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