Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Account transactions within 72hours Post Reply Post New Topic
Author Message
halekat
Newbie
Newbie
Avatar

Joined: 10 Nov 2008
Location: United States
Online Status: Offline
Posts: 3
Quote halekat Replybullet Topic: Account transactions within 72hours
    Posted: 20 May 2009 at 1:42pm

I need know how to pull just the transactions that occur within 72 hours of each other for a specific time period. The 72 hour will start with the complete date to the next arrival date. 

Start Date ______Customer ID       transaction #   Complete Date
05/08/2009            1                          1                     05/08/2009
05/09/2009            2                          2                     05/10/2009
05/10/2009            3                          3                     05/10/2009
05/11/2009            2                          4                     05/11/2009
05/11/2009            4                          5                     05/12/2009
05/12/2009            5                          6                     05/12/2009
05/13/2009            4                          7                     05/13/2009
Thanks
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 20 May 2009 at 1:52pm
1. I assume that since you are not displaying hours you want it to be within 3 days rather than 72 hours...
2. I assume the referred to "arrival date" being displayed as "start date"...
3. I assume you want both records to that meet the 3 day condition to appear, not just the first record...
You could conditionally suppress rows using the next() and previous() functions with a datediff as:
datediff("d",completiondate,next(startdate))>3 and
datediff("d",previous(completiondate),startdate)>3


Edited by DBlank - 20 May 2009 at 1:53pm
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.079 seconds.