Report to return data for previous Monday through Friday weekday

Posted on 2011-10-09
Last Modified: 2012-08-13
I have a report that runs Monday through Friday identifying employees with a hire date the previous weekday.  For example when the report runs Monday, I need it to pick up hire dates from the previous Friday.  Report runs Tuesday it picks up Monday hires, report runs Wednesday, it picks up Tuesday's hires, etc.  Thanks for your support.
Question by:jph826
    LVL 100

    Accepted Solution

    Do you need to handle holidays?

    Try this idea

    If DayofWeek(CurrentDate) = crMonday then
        {DateFIeld} = Currentdate - 3
        {DateField} = CurrentDate - 1


    Author Comment

    Holidays would not be a consideration in this case, but what a great question!  I had not thought of that.  Your suggestion worked great.  Thanks for your support!

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now