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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRevious field

Status
Not open for further replies.

dandman71

MIS
Aug 14, 2002
14
US
I am creating a report which has a running total associated with it for employee earnings. As an employee is paid up to 14000, an amout is calculated in another formula field. I have created the formla field to calcualte the amount. HOwever,if a person is paid cumulativley to 13,500 it will give a value, but the next entry is 15,200 and there is no value caluclated because it is seeing it as over the cap. I need it to calculate on other 500 dollars that should be charged before the cap was hit. IS there a way to accomplosih this in a PREVIOUS function of some tpe. thank you
 
Let's say that you are calculating 5% of earnings up to $14,000 and that you are accumulating earnings in a running total {#sumearnings}. You could create a formula like the following:

if {#sumearnings} <= 14000 then
{table.earnings} * .05 else
if {#sumearnings} > 14000 then
14000 * .05

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top