luv2bike2nv
IS-IT--Management
Crystal Reports 8.5
I have been creating "simple" reports, nothing fancy.
Now I have a user that wants a report with a bar chart with percentage of ontime delivery on the X Axis and the month on the Y Axis.
I haven't not done this, however I believe it can be done. I need a count on how many lines there are in a group (month) (which i believe i should get the count by creating a Running Total, correct me if I am wrong). I need to add one to a total for each ontime delivery (optional -- add one for each late delivery). Then get a percentage for each month for ontime deleivery to be used in a Bar Chart.
I have an if, then, else statement for:
@Ontime
if {cusdue} >= {shpdte}
then {cusdue} - {shpdte}
and one for late delivery
@Late
If {CUSDUE} <= {SHPDTE}
then {SHPDTE} - {CusDue}
I also have an if,then for counting:
@ontimecount
if cusdue >= (shpdte)
then 1
and
@latecount
if cusdue <= shpdte
then 1
question 1:
can i nest the two if then formulas that have >= into one, the same with the 2 if then that have <=? if so, how would i go about doing that?
Question 2:
which function can i (or should I) use to get the percentage of ontime deliveries. i believe i would use the Running Total (total number of lines in the group)
Runnting Total formula:
#linecount
Summary
Field to summarize: Delnum (delivery line number)s
Type of Summary: Count
Evaluate
on Change of group: CusDue
Reset
On Change of group: Cusdue
I am using CusDue for the Month which the Group header/footer is set for Month.
Any help would be appreciated.
Thanks so much.
I have been creating "simple" reports, nothing fancy.
Now I have a user that wants a report with a bar chart with percentage of ontime delivery on the X Axis and the month on the Y Axis.
I haven't not done this, however I believe it can be done. I need a count on how many lines there are in a group (month) (which i believe i should get the count by creating a Running Total, correct me if I am wrong). I need to add one to a total for each ontime delivery (optional -- add one for each late delivery). Then get a percentage for each month for ontime deleivery to be used in a Bar Chart.
I have an if, then, else statement for:
@Ontime
if {cusdue} >= {shpdte}
then {cusdue} - {shpdte}
and one for late delivery
@Late
If {CUSDUE} <= {SHPDTE}
then {SHPDTE} - {CusDue}
I also have an if,then for counting:
@ontimecount
if cusdue >= (shpdte)
then 1
and
@latecount
if cusdue <= shpdte
then 1
question 1:
can i nest the two if then formulas that have >= into one, the same with the 2 if then that have <=? if so, how would i go about doing that?
Question 2:
which function can i (or should I) use to get the percentage of ontime deliveries. i believe i would use the Running Total (total number of lines in the group)
Runnting Total formula:
#linecount
Summary
Field to summarize: Delnum (delivery line number)s
Type of Summary: Count
Evaluate
on Change of group: CusDue
Reset
On Change of group: Cusdue
I am using CusDue for the Month which the Group header/footer is set for Month.
Any help would be appreciated.
Thanks so much.