web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

BC Date filter to always show yesterday but exclude weekends (Monday's yesterday is friday)

(1) ShareShare
ReportReport
Posted on by 19
Not sure this is possible but chekcing here if anyone has a simple solution.  Trying to use a standard date filter that always show yesterday but exclude weekends (Monday's yesterday is friday).
 
example -1d<>WD6|WD7
I have the same question (0)
  • Brett F Profile Picture
    450 on at
    I would like to know if this is possible as well.  Nothing I've tried has worked.
  • Suggested answer
    KasparsSemjonovs Profile Picture
    4,764 Super User 2025 Season 2 on at
    Current filter has several wrongs in it:
    WD6 and WD 7 returns current week's 6th and 7th day, so on monday it will check if it is not next saturday/sunday. So You would need to add a minus sign -so it is previous week "-WD6"   will give last saturday. 
    Correct version of your filter would be "-1D&<>-WD6&<>-WD7"  , but this will work on Tuesday to Saturday. But for Sundays and Mondays this would just return an empty list and You would need a filter "-3D&<>-WD6&<>-WD7". There is no option to have conditions or IF in filters, therefore I don't think this is possible with standard options. 
     
     
    A customization would require to check the current day and apply filter based on result - either -1D on tuesday till saturday, -2D on Sundays and -3D on mondays.
     
     
  • Verified answer
    KasparsSemjonovs Profile Picture
    4,764 Super User 2025 Season 2 on at
    Actually gave it some more thought and I think this filter could work - at least it works on my tests :)
    -3D&<>-WD1&<>-WD2&<>-WD3&<>-WD4&<>-WD6&<>-WD7|-1D&<>-WD6&<>-WD7

    or to make this shorter:
    -3D&-WD5|-1D&<>-WD6&<>-WD7
     
     
    It filters on -3D but shows it only if it is last friday, and it filters on -1D and hides last saturday and last sunday.  So on Sunday You will not get anything shown. If You need on Sunday to also show Friday, then use this:
    -3D&-WD5|-1D&<>-WD6&<>-WD7|-2D&-WD5
  • jk12984 Profile Picture
    19 on at
    Thanks Kaspars!  I'll give that a try.  Joe

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans