thisisboni
Programmer
Environ: CR10, Oracle 9i
table in dB called THROUGHPUT_DATA with columns
indicator, ticket#, date, yyyy_mm
indicator is either c or R
C = create, R = resolved
Backlog for each month = ticket created prior to that month and resolved after that month or is still not resolved.
say: create_dt = 5/3/2006 and resolved_date = 7/4/2006
then its a backlog for 2006_06 and 2006_07
I have the following formula:
//{@backlog}
datevar dt:= date(tonumber(left(GroupName ({THROUGHPUT_DATA.YYYY_MM}),4)),tonumber(right(GroupName ({THROUGHPUT_DATA.YYYY_MM}),2)),01);
IF (({%CREATE_DATE}< dt and isnull({THROUGHPUT_DATA.YYYY_MM})) OR
({%CREATE_DATE}< dt and {%RESOLVED_DATE}>=dt)) THEN
{THROUGHPUT_DATA.CASEID} + ' Backlog'
ELSE {THROUGHPUT_DATA.CASEID} + ' Not a Backlog'
The problem with this is: say for the sample data above its showing it as a backlog for 2006_07 but not as 2006_06
Please let me know if more info is needed and/or a possible solution to this.
Thanks
table in dB called THROUGHPUT_DATA with columns
indicator, ticket#, date, yyyy_mm
indicator is either c or R
C = create, R = resolved
Backlog for each month = ticket created prior to that month and resolved after that month or is still not resolved.
say: create_dt = 5/3/2006 and resolved_date = 7/4/2006
then its a backlog for 2006_06 and 2006_07
I have the following formula:
//{@backlog}
datevar dt:= date(tonumber(left(GroupName ({THROUGHPUT_DATA.YYYY_MM}),4)),tonumber(right(GroupName ({THROUGHPUT_DATA.YYYY_MM}),2)),01);
IF (({%CREATE_DATE}< dt and isnull({THROUGHPUT_DATA.YYYY_MM})) OR
({%CREATE_DATE}< dt and {%RESOLVED_DATE}>=dt)) THEN
{THROUGHPUT_DATA.CASEID} + ' Backlog'
ELSE {THROUGHPUT_DATA.CASEID} + ' Not a Backlog'
The problem with this is: say for the sample data above its showing it as a backlog for 2006_07 but not as 2006_06
Please let me know if more info is needed and/or a possible solution to this.
Thanks