I get a "division by zero" message when I run a report with certain date ranges. Can I tell CR to ignor the sum that it is trying to use to divide by zero, or am I missing the point?
The formula it is referring to:
Sum({@Priority1_7days},{WO.Priority}) /
Sum({@#1'sClosed},{WO.Priority}) *100
The formula {@Priority1_7days} goes like this:
IF {WO.WOTYPE} = 'CM' AND {WO.PRIORITY} = 1 AND {WO.STATUS} IN ['M','C'] AND
{@CM DAYS TO COMPLETE} <=1 THEN 1 else 0
The formula {@#1'sClosed} goes like this:
IF {WO.WOTYPE} = 'CM' AND {WO.PRIORITY} = 1 AND {WO.STATUS} IN ['M','C'] THEN 1 ELSE 0
Any help would be appreciated.
The formula it is referring to:
Sum({@Priority1_7days},{WO.Priority}) /
Sum({@#1'sClosed},{WO.Priority}) *100
The formula {@Priority1_7days} goes like this:
IF {WO.WOTYPE} = 'CM' AND {WO.PRIORITY} = 1 AND {WO.STATUS} IN ['M','C'] AND
{@CM DAYS TO COMPLETE} <=1 THEN 1 else 0
The formula {@#1'sClosed} goes like this:
IF {WO.WOTYPE} = 'CM' AND {WO.PRIORITY} = 1 AND {WO.STATUS} IN ['M','C'] THEN 1 ELSE 0
Any help would be appreciated.