Crysta- YTD formula

Posted on 2011-10-04
Last Modified: 2012-05-12
Can someone please tell me what this means:
if {openeddate} in iif(month(currentdate)=1, minimum(LastYearYTD) to date(year(currentdate)-1,12,31),YearToDate) and {openeddate}<= maximum(LastFullMonth) then
Question by:moni81011
    LVL 77

    Accepted Solution

    It is testing whether openeddate is in the current year excluding the current month, unless the current month is January, when it is testing to see if Openeddate is in the last calendar year.

    If the date is in the required range the value 1 is output from the formula else a value of 0 is output.
    LVL 100

    Expert Comment


    It is probably being used to count the records in the last year or in the current year through the last month.


    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

    Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
    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…
    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…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    761 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

    12 Experts available now in Live!

    Get 1:1 Help Now