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

sum of a running total

Status
Not open for further replies.

katididdy

Technical User
Joined
Mar 13, 2006
Messages
70
Location
US
Hi everyone.

I need to sum the amount of trucks that are overweight for a report (> 74500 lbs). I have this amount in a running total, but I am unable to sum it. I need to get the percentage of trucks overweight (overweight/total#oftrucks) for 2 different places. Does anyone have any suggestions on how I can do this? Any help is appreciated!

Thank you,
Katherine
 
We don't know what "(overweight/total#oftrucks) for 2 different places." means, try taking the time to be specific.

Rather than use a Running total, in the details try formulas of:

//number of trucks
If {table.weight} > 74500 then
1
else
0

//total weight, not sure if you need this
If {table.weight} > 74500 then
{table.weight}
else
0

Now you can right click these formulas and use the conventional Insert->Summary->Sum to create aggregates at the group level or as grand totals.

As for getting a percentage, you can use:

sum({@MyTruckFormula})%count({table.weight})

-k
 
Thank you for your help! It's working now, report has been presented.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top