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!

Grand Total on Formula

Status
Not open for further replies.

hbarbs

Instructor
Mar 20, 2006
19
0
0
US
I am trying to grand total on a forumla, and it is not allowing me to do so (as you can see I am very new to Crystal).

The forumla is in my group and is
Sum ({CnGf_1.CnGf_1_Amount}, {CnAttrCat_1.CnAttrCat_1_Description})-Sum ({CnSmryGft_1.CnSmryGft_1_Total_Gift_amount}, {CnAttrCat_1.CnAttrCat_1_Description})

Is there any way to run a total on all my entries for this field?

Thanks a bunch!
 
Use a formula, as in:

whileprintingrecords;
numbervar MyTotal:=
MyTotal+Sum ({CnGf_1.CnGf_1_Amount}, {CnAttrCat_1.CnAttrCat_1_Description})-Sum ({CnSmryGft_1.CnSmryGft_1_Total_Gift_amount}, {CnAttrCat_1.CnAttrCat_1_Description})

Now display the formula in the report footer using:

whileprintingrecords;
numbervar MyTotal

-k
 
Formula,

Sum (fld, condFld)

Because you're putting in a condition field it's only going to summarise by grouping that field. If you take that out of your grand total formula it should summarise correctly

Sum ({CnGf_1.CnGf_1_Amount}) - Sum ({CnSmryGft_1.CnSmryGft_1_Total_Gift_amount})
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top