I have a report with a formula that takes data from the main report and two sub reports. I'm coming up with a division by zero error, and whatever permutation I try I cannot get round it!
The formula is
shared numbervar ACTIVITYCOUNT;
shared numbervar CASECOUNT;
100 * ((ACTIVITYCOUNT+CASECOUNT) / sum({@ACD - transferred out},{@Split Skill}))
and the error is 'shared numbervar ACTIVITYCOUNT; ' Division by zero.
I've tried changing the formula to
if ACTIVITYCOUNT = 0 then
100 * (CASECOUNT / sum({@ACD - transferred out},{@Split Skill}))
else
100 * ((ACTIVITYCOUNT+CASECOUNT) / sum({@ACD - transferred out},{@Split Skill}))
but still get the same error
The shared variable formulas in the subreports are
shared numbervar CASECOUNT :=
DistinctCount ({W_CASE_D.CASE_NUM}, {@Type})
shared numbervar ACTIVITYCOUNT :=
DistinctCount ({W_ACTIVITY_F.INTEGRATION_ID}, {@Type})
I am using Crystal 10
Any help would be appreciated
The formula is
shared numbervar ACTIVITYCOUNT;
shared numbervar CASECOUNT;
100 * ((ACTIVITYCOUNT+CASECOUNT) / sum({@ACD - transferred out},{@Split Skill}))
and the error is 'shared numbervar ACTIVITYCOUNT; ' Division by zero.
I've tried changing the formula to
if ACTIVITYCOUNT = 0 then
100 * (CASECOUNT / sum({@ACD - transferred out},{@Split Skill}))
else
100 * ((ACTIVITYCOUNT+CASECOUNT) / sum({@ACD - transferred out},{@Split Skill}))
but still get the same error
The shared variable formulas in the subreports are
shared numbervar CASECOUNT :=
DistinctCount ({W_CASE_D.CASE_NUM}, {@Type})
shared numbervar ACTIVITYCOUNT :=
DistinctCount ({W_ACTIVITY_F.INTEGRATION_ID}, {@Type})
I am using Crystal 10
Any help would be appreciated