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

Summary formula

Status
Not open for further replies.

neeko1226

MIS
Jul 24, 2003
82
US
I'm trying to sum two number fields where another text field is within a given set of values. the report is grouped by transaction date.
Here's an example:

F1-F4 are field pulled in from a query in Access.


GroupHeader(suppressed)
F1 F2 F3 F4

TranDate CountofA CountofB ValueA

7/1/03 36 25 ddd

Detail 7/1/03 21 30 xxx

7/1/03 15 10 ttt


GroupFooter 72 65
(subtotal of (subtotal of
CountofA) CountofB)

I need to add a formula to show: Sum(CountofA) where {ValueA} is one of "ddd" or "ttt".

Getting grey hairs by the second!

Neeko

 
Try adding a formula {@valueAdddttt} to your detail section:

if {table.valueA} in ["ddd","ttt"] then {table.CountofA}

Insert a sum on this at the group level.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top