Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Sep 2001
    Location
    Stuck at work..., Missouri, USA
    Posts
    248
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Math with Year/Quarters (2003)

    I am trying to write a function that returns a Boolean that indicates if QuarterA is more than QuarterB by X.

    For example, given 200701 for Q1 and 200802 for Q2 and 4 for X, it would return TRUE since 200802 is 5 quarters after 200701.

    Does that make sense?

    Any guidance?

    Thanks!
    <font face="Comic Sans MS">Morgan Erickson</font face=comic>
    morgan.erickson@sprint.com
    <img src=/S/flags/USA.gif border=0 alt=USA width=30 height=18>-From <img src=/S/flags/Colorado.gif border=0 alt=Colorado width=30 height=18> but living in <img src=/S/flags/Missouri.gif border=0 alt=Missouri width=30 height=18>...and working in Kansas.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Math with Year/Quarters (2003)

    You can use

    [Q2] 25 + [Q2] Mod 100 - [Q1] 25 - [Q1] Mod 100 > [X]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •