Hi All!
I'm new to Crystal Reports. The version I am using is 9.2. I’ve tried creating a crosstab report which hasn’t worked so I’m completely stuck on how to go about developing this report.
Is a crosstab applicable to this type of report or is there a better way to accomplish this?
Thank you in advance to anyone who can possibly provide assistance/guidance. (I’ve been racking my brain with this)
![[gorgeous] [gorgeous] [gorgeous]](/data/assets/smilies/gorgeous.gif)
Summary: I need to create the sample report:
<=10 Days 11-30 Days 31-45 Days 46-60 Days +60 Days Total
System Group
The fields I am working within the table are:
Create_Date
System_Group
Task_ID
System
It is a parameterized report based on the following:
Start Date
End Date
System
The System has Sub-Systems within them (i.e. System_Group).
Each column is to provide the total number of Tasks for each Sub-System group within the specified number of days (i.e column headings). I’m using the DateDiff function to calculate the number of days. If no record exists for the specified system group within the respective column heading, then the column heading should still display with a 0 in that column.
For the number of days, I’m using the following:
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=10) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=11 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=30)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=31 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=45)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=46 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=60)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=61) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
I'm new to Crystal Reports. The version I am using is 9.2. I’ve tried creating a crosstab report which hasn’t worked so I’m completely stuck on how to go about developing this report.
Is a crosstab applicable to this type of report or is there a better way to accomplish this?
Thank you in advance to anyone who can possibly provide assistance/guidance. (I’ve been racking my brain with this)
![[gorgeous] [gorgeous] [gorgeous]](/data/assets/smilies/gorgeous.gif)
Summary: I need to create the sample report:
<=10 Days 11-30 Days 31-45 Days 46-60 Days +60 Days Total
System Group
The fields I am working within the table are:
Create_Date
System_Group
Task_ID
System
It is a parameterized report based on the following:
Start Date
End Date
System
The System has Sub-Systems within them (i.e. System_Group).
Each column is to provide the total number of Tasks for each Sub-System group within the specified number of days (i.e column headings). I’m using the DateDiff function to calculate the number of days. If no record exists for the specified system group within the respective column heading, then the column heading should still display with a 0 in that column.
For the number of days, I’m using the following:
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=10) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=11 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=30)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=31 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=45)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=46 and (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) <=60)) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})
else
if (DateDiff ("d",{CHG_Task.Create_date},{?EndDate} ) >=61) then
Count ({CHG_Task.Task_ID_},{CHG_Task.System_Group})