I am using CRXI and have developed a sick leave absences report that is grouped by a formula that checks the date differences and produces a number as below.
if datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI}) = 0
then
datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI})+1
else
datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI})+1
This produces the result I was expecting to get the data in namely 1 - 12 and the array of results matches to sequence in the subreport for the graph but any attempt to use the abbreviated month name and year and the graph sorts alphabetically or numerically if you use the month numbers.
The data is sorted in the subreport for the graph into any 12 month sequence from the date entered. The only problem is that when I try to graph the data I get 1,2,3,4,5,6,7,8,9,10,11,12 for the X axis which is correct but I have an an array that shows the month name abbreviated but the graph keeps sorting alphabetically when I use that formula. What I would like to do is have the chart show the data as follows
Feb 08 Mar 08 Apr 08 May 08 etc
Is there anyway that Crystal can be made to dynamically use a specified sequence (there is only twelve sequences thankfully)and not sort alpabetically or numerically. I have tried the cross tab solution but it seems to do exactly the same thing so I am at my wits end.
if datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI}) = 0
then
datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI})+1
else
datediff("m",{?Pm-@f1_StartDate},{hrpay_lve_union_avw.TIMESHEET_DATEI})+1
This produces the result I was expecting to get the data in namely 1 - 12 and the array of results matches to sequence in the subreport for the graph but any attempt to use the abbreviated month name and year and the graph sorts alphabetically or numerically if you use the month numbers.
The data is sorted in the subreport for the graph into any 12 month sequence from the date entered. The only problem is that when I try to graph the data I get 1,2,3,4,5,6,7,8,9,10,11,12 for the X axis which is correct but I have an an array that shows the month name abbreviated but the graph keeps sorting alphabetically when I use that formula. What I would like to do is have the chart show the data as follows
Feb 08 Mar 08 Apr 08 May 08 etc
Is there anyway that Crystal can be made to dynamically use a specified sequence (there is only twelve sequences thankfully)and not sort alpabetically or numerically. I have tried the cross tab solution but it seems to do exactly the same thing so I am at my wits end.