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!

Easy Question - Grand Totals 1

Status
Not open for further replies.

Estandridge

IS-IT--Management
Jul 27, 2004
14
US
In CR 8.5, I am trying to use a formula that will calculate a target percent from a grand total in the footer section. The question is, in a formula, any formula, how would I use a grand total (summery) in a formula, say X/{grand total}? I hope there's an easy way to do this, don't want to spend all week making formulas. :p

Thanks much!
Eric
 
Try:

x/sum({table.field})

...where {table.field} is the field you are grand totaling.

-LB
 
I was assuming you were summing, but if you were counting, it would be the same syntax:

x/count({table.field})

-LB
 
I think that's pretty much what I have.. there are several formulas that I'm using but they aren't returning the right number.. here's an example of one:


(Sum({@jan2}, {@Customer}) * .16017) + Sum({@jan2}, {@Customer})

Where Jan2 is the total of sales for a particular customer.. The formula above is suposed to calculate a target dollar amount. I set it up as having a grand total of @jan2, but don't know the right way to use that in a formula in the footer section. Thanks for the quick responce by the way.. :)

Thanks,
Eric
 
Once you've created the grand total, it will be available as a field along with the database fields, parameters etc. You should find it prefixed by a Greek symbol (not one I can figure how to post here) and saying something like Report Area: Sum of

[yinyang] Madawc Williams (East Anglia, UK) [yinyang]
 
Hey Madawc, thanks for the information.. :) I never noticed that before.. was thrown into doing crystal reports with no training what-so-ever, so I didn't know little things like that existed.. LOL Thanks much my friend.. it's appreciated.

Eric
 
Your formula would be for a group footer, not a report footer. If you want this calculation at the report level, then use:

(Sum({@jan2})*.16017) + Sum({@jan2})

-LB



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top