Crystal Report LASTFullweek

Posted on 2014-08-05
Last Modified: 2014-08-08
I submitted a question regarding this issue before.  If I use the LASTFUllWeek in this formula

 "From " + cstr(minimum(LastFullWeek), "MM/dd/yyyy") +
          " to " + cstr(maximum(LastFullWeek), "MM/dd/yyyy")

 It does show the last 7 days; however, I want to put in a {?StartDate}.  From that {?StartDate} obtain the data minimum and maximum days selected.  I only want to use one {?startDate} prompt to obtain the "From" + "To" --- Can this be done in this formula?
Question by:cdmccoy
    1 Comment
    LVL 100

    Accepted Solution

    DateAdd("D",-DayofWeek({?StartDate}),({?StartDate}) + 1

    DateAdd("D",-DayofWeek({?StartDate}),({?StartDate}) + 7

    In the Selection

    {@FirstDayofWeek} <= {Datefield}  AND {@LastDayofWeek} >= {Datefield}


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 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

    13 Experts available now in Live!

    Get 1:1 Help Now