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

Group sum with condition 1

Status
Not open for further replies.

er123

IS-IT--Management
Aug 21, 2009
9
US
I would like to get a sum for a field by group with a condition for filtering the field (when the field = x). How does one create a formula for a sum with a condition?
 
There are two ways to do this:

1. Use a Running Total. You can include a condition in the setup and reset it on change of group.

2. Create a formula and sum it for the group. The formula will be in the format:

If {table.FilterField} = 'X' then {table.field_to_sum} else 0

-Dell

A computer only does what you actually told it to do - not what you thought you told it to do.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top