Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running Total formula 1

Status
Not open for further replies.

acessn

Programmer
Feb 16, 2005
71
NO
Hi.

Using CR 9.0

I have a Running Total (sum) that evaluates on change of "group #2 @Employee Name an Number". This works fine, but what I need to do is to somehow get this into "Use a formula."

This is because I need to exclude some records. In the formula I will say
Code:
not(VP_EMPLOYEE.PAYRULENAME="Hours")
, but I also need to evaluate on change of group #2.

Any ideas?

Thanks,
Bjorn
 
Try {your.field} <> Previous({your.field})

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Hi.

It didn't count the first record with this formula, but worked like a charm when I used
Code:
{your.field} <> Next({your.field})

Thanks for the tip!

-Bjorn
 
You might have a problem with the last record using this formula. You could use:

onfirstrecord or
{table.field} <> previous({table.field})

-LB
 
Thanks a lot LB.

I didn't see that one coming..

Regards,
Bjorn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top