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

Summary field ???

Status
Not open for further replies.

pancho13

Technical User
Apr 22, 2003
12
0
0
AU
Hello There Crystal gurus:
I've got a little tricky problem that i can't get an answer for.
How can I create a formula field from a group summary so that I could reduce it from the grand total eg:
Sum all cost from a 'group field' where that group 'gl' field start with "22", then reduce this from the grand total...???

I've tried Sum(fld,condfld,cond) but I've got an error saying "the summary / grand total field could not be created" .... any hints, please!!
 
Have you tried using a running total and then in the evaluation part of the running total, you can insert you condition in there i.e.

{field} like "22*"

this should then only evaluate records where this condition is true.

You should then be able to subtract this from your grand total.

HTH
 
You could use a running total or, if you don't have row inflation, you could create a conditional formula, as in {@gl22}:

if {table.field} startswith "22" then {table.amt}

Then create a second formula to subtract from your grand total:

sum({table.amt}) - sum({@gl22})

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top