sum calculated fields

  • Thread starter Matthew Loraditch
  • Start date
M

Matthew Loraditch

I have a report where i calculate information using the following formula:
=IIf([Tax]=0,0,0.05*Sum([Quantity]*[Unit Price]))+Sum([Quantity]*[Unit
Price])+[Shipping Charge]
This information is grouped by it's type. I'd like to place a total for
each group and then a master total for the whole report.
I believe i've placed the field correctly in the group footer and set the
field as a running sum for the group but the number produced using the same
equation is not correct. I'm thinking i may need to Dsum something but i'm
not sure what?
Can anyone help?
Thanks
 
A

AlCamp

Matthew,
If you calculate a value "on the report", it isn't "bound" to any field,
so =Sum(MyField) won't work in your footers.
Add this field to your query behind the report
TaxCalc : =IIf([Tax]=0,0,0.05*Sum([Quantity]*[Unit
Price]))+Sum([Quantity]*[Unit Price])+[Shipping Charge]
Now place TaxCalc on the report, and...
= Sum(TaxCalc)
will work in any report footer.
hth
Al Camp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Calculated Totals 7
Sort a calculated field 15
Sum in page footer problem 0
Total or pre calculated column 5
Adding Totals on a report 2
Totaling Sums for Price and COMM 3
Report Calculation 2
Calculations 4

Top