Forum Discussion
Filter by Previous Working Day
- 7 years ago
Anonymous Hello, bacically I just wanted the DAX to show previous working day. For example since today is Tuesday 3/26/2019 the returned date should be Monday 3/25/2019. If to day was Monday 3/25/2019 then the returned value should be Friday 3/22/2019. I think I have it now, What do you think? I needed to change the 4 to a 5.
IF ( WEEKDAY ( TODAY (), 3 ) < 5, TODAY () - 1, TODAY () - ( 7 + WEEKDAY ( TODAY (), 3 ) ) )
Hi,
It would be helpful if you provided a sample of your data to demonstrate what you're looking to do.
Thanks,
Ben
Anonymous Hello, bacically I just wanted the DAX to show previous working day. For example since today is Tuesday 3/26/2019 the returned date should be Monday 3/25/2019. If to day was Monday 3/25/2019 then the returned value should be Friday 3/22/2019. I think I have it now, What do you think? I needed to change the 4 to a 5.
IF (
WEEKDAY ( TODAY (), 3 ) < 5,
TODAY () - 1,
TODAY ()
- ( 7 + WEEKDAY ( TODAY (), 3 ) )
)