Hello,
I am stuck in the formula mentioned below. I have "Resolved" and "Touched" formulas doing a running total. What I need to do is to combine both in one formula and do a count. Also, field
{HPD_HELP_DESK.INCIDENT_NUMBER} should not be counted twice (like one in Resolved and one in Touched).
Please assist.
WhilePrintingRecords;
Global NumberVar Total;
//Resolved
if {@Resolved Date} in {?Start Date} to {?End Date} then
(
if {HPD_HELP_DESK.LAST_RESOLVED_BY} = GroupName ({@Analyst}) then
if {HPD_HELP_DESK.INCIDENT_NUMBER} <> next ({HPD_HELP_DESK.INCIDENT_NUMBER}) then
(
Total := Total + 1;
Total
)
)
else
//Touched
if {@Touched Date} in {?Start Date} to {?End Date} then
if {@Touched}like {@Analyst} and
not(next({@Touched}) like {@Analyst}) and
({HPD_HELP_DESK.INCIDENT_NUMBER} = next({HPD_HELP_DESK.INCIDENT_NUMBER}))
or
({@Touched}like {@Analyst} and
({HPD_HELP_DESK.INCIDENT_NUMBER} <> next ({HPD_HELP_DESK.INCIDENT_NUMBER})))
then
(
Total := Total + 1;
Total
)