I have this in CR2008:
Group1: Complaint Number
Group2: Status Date
Group3: Status
Details: Suppressed
I have Group 2 Name in the Group 3 header and the group 2 header is suppressed.
What I need is:
Complaint Number: 122
(status) (status date) (number of days in status)
Complaint Opened: 05/12/2008 22
Investigation Opened: 06/03/2008 36
Investigator Reassigned: 07/09/2008 519
Investigation Complete: 12/10/2009 25
Admin Review Complete: 01/04/2010 25
What I have showing up is:
Complaint Number: 122
(status) (status date) (number of days in status)
Complaint Opened: 05/12/2008 0
Investigation Opened: 06/03/2008 22
Investigator Reassigned: 07/09/2008 36
Investigation Complete: 12/10/2009 519
Admin Review Complete: 01/04/2010 25
The formula I'm using for datediff is:
whileprintingrecords;
DateTimeVar BeginDate := (if (previous({complaint number}) <> {complaint number}) then {status date} else previous({status date}));
DateTimeVar EndDate := {status date};
NumberVar total_days := DateDiff("D", BeginDate, EndDate);
Basically what they need is the number of days that the complaint is in each status...so the datediff line needs to move up one row.
Does that make sense?
Group1: Complaint Number
Group2: Status Date
Group3: Status
Details: Suppressed
I have Group 2 Name in the Group 3 header and the group 2 header is suppressed.
What I need is:
Complaint Number: 122
(status) (status date) (number of days in status)
Complaint Opened: 05/12/2008 22
Investigation Opened: 06/03/2008 36
Investigator Reassigned: 07/09/2008 519
Investigation Complete: 12/10/2009 25
Admin Review Complete: 01/04/2010 25
What I have showing up is:
Complaint Number: 122
(status) (status date) (number of days in status)
Complaint Opened: 05/12/2008 0
Investigation Opened: 06/03/2008 22
Investigator Reassigned: 07/09/2008 36
Investigation Complete: 12/10/2009 519
Admin Review Complete: 01/04/2010 25
The formula I'm using for datediff is:
whileprintingrecords;
DateTimeVar BeginDate := (if (previous({complaint number}) <> {complaint number}) then {status date} else previous({status date}));
DateTimeVar EndDate := {status date};
NumberVar total_days := DateDiff("D", BeginDate, EndDate);
Basically what they need is the number of days that the complaint is in each status...so the datediff line needs to move up one row.
Does that make sense?