TotalCost is now displayed in each Location Header – works great. Now I want to take the @TotalCost of each Location – and get a Grand Total in the Report Footer?
Thank you Peter. I used your formulas - however I'm still getting $0.00 in the footer and header? Thank you.
Mike McCracken
Can you show the formulas you are usnig and where you placed them?
mlmcc
Maryann Wood
ASKER
Formuals created - No I created formulas and placed them in the Header, Fooder, and Group - should I have used Selection Expert for each section and created the formulas there?
Group Header for LOCATION.LOCATION (this works fine - getting the total I'm looking for)
You should have Whileprintingrecords in the first formula too. Without that, the formula may produce the correct total on the report, but not be updating the Gtot variable properly.
When you said before that you were getting 0 in the footer and header, did you mean a group footer and header, or the report footer and header? The formula in the report header will only produce 0, because it's creating the Gtot variable and setting it to 0. If you don't want to see that 0 on the report, you can add "" at the end (as in the formula that Peter posted), so that the formula produces no visible output, or suppress that formula, or the entire report header section, if there's nothing else in that section that you need to see.
If you want to actually see the final total in the report header, you can't do that this way. The Gtot variable will be updated as the records are read, and it won't have a total until the last record has been read.
James
Maryann Wood
ASKER
Getting $0.00 in Report Footer and Header.
I did add the "" at the end of the formula and am not seeing the $0.00.
So - now thta I'm seeing my totals correctly - how do I get a grand total for the Location totals?
i've attached a sample. Thank you for your assistance.
Group Header for LOCATION.LOCATION (this works fine - getting the total I'm looking for)
WhilePrintingRecords;
Currencyvar Gtot;
Gtot:=Gtot+ {WORKORDER.ACTMATCOST}+{WORKORDER.ACTLABCOST}+ {WORKORDER.ACTTOOLCOST} + {WORKORDER.ACTSERVCOST};
{WORKORDER.ACTMATCOST}+{WORKORDER.ACTLABCOST}+ {WORKORDER.ACTTOOLCOST} + {WORKORDER.ACTSERVCOST}
Thanks so much - closer. Now I have Report Footer is totaling the Loations on the second parge only - not both pages. Where should the Footer reside to get the costs from each Location?
You would want it in the Page Footer however it will post the current total at that point not the overall total.
mlmcc
Maryann Wood
ASKER
Thank you - I know have the formula in the Page Footer and I'm seeing the total per page. Am I correct - there is no way to total both pages to one GRAND TOTAL? Thanks again. Locatioon---Asset-Hierarchy-Cost.pdf