on 10-15-2015 3:27 PM
I am using a formula at the group level to display a total based on varyingcriteria. In some instances, it will pull an average number and in others, it will sum up other summary fields in the group. Therefore, it does not make sense to sum the orgiginal detail field in the grand total. I need to take all the results from my formula summary field and add them up in the report total.
Is there a way to do this? I have seen postings about putting formulas in the report header and then iin report footer about 'WhilePrintingRecords' But not sure I understand the steps involved. Please help with some specific detail.
The formula in my group field that I need to total at the report level:
if {@NBVerify} = TRUE then (Sum ({@Benchmark NB}, {@fullname}))*(({?End Date}-{?Start Date})/({?Average Calc}*30)) else Sum ({@Scheduled Count}, {@fullname})+Sum ({@Open Count}, {@fullname})+Sum ({@Hold Count}, {@fullname})
Thanks for any help.
Hi John,
Modify the formula to:
whileprintingrecords;
numbervar subt := if {@NBVerify} = TRUE then (Sum ({@Benchmark NB}, {@fullname}))*(({?End Date}-{?Start Date})/({?Average Calc}*30)) else Sum ({@Scheduled Count}, {@fullname})+Sum ({@Open Count}, {@fullname})+Sum ({@Hold Count}, {@fullname});
numbervar gtotal := gtotal + subt;
subt;
Create another formula with this code and place this on the Report Footer:
whileprintingrecords;
numbervar gtotal;
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.