Hi There
I'm just getting to grips with formulas and have the following problem
These are my two data columns
Form1 - 10
Form1 - 20
Form1 - 15
Form2 - 6
Form2 - 8
Form2 - 10
Form3 - 14
Form3 - 16
Form3 - 12
From this I want to get the average of each form and the grand total of all the averages......ie
Form1 - 15 (group footer)
Form2 - 8 (group footer)
Form3 - 14 (group footer)
Total - 37 (report footer)
I group by form and create a running total field called #Average which I place in the group footer, this averages up the values for each form.....so far so good.
I stumble when it comes to totalling up the average values.
I create this formula
shared numbervar TotalAverage;
TotalAverage := TotalAverage + {#Average};
I place it in the group footer and it does exactly what I want it to do. I can see #Average being summed at each group....until i place it in the Report Footer and it adds the average of the last value twice. So instead of getting 37 I get 51
Is there a way I can stop it from adding the last group twice.... or am I doing this entirely wrong
Any help would be hugely appreciated
Dan
I'm just getting to grips with formulas and have the following problem
These are my two data columns
Form1 - 10
Form1 - 20
Form1 - 15
Form2 - 6
Form2 - 8
Form2 - 10
Form3 - 14
Form3 - 16
Form3 - 12
From this I want to get the average of each form and the grand total of all the averages......ie
Form1 - 15 (group footer)
Form2 - 8 (group footer)
Form3 - 14 (group footer)
Total - 37 (report footer)
I group by form and create a running total field called #Average which I place in the group footer, this averages up the values for each form.....so far so good.
I stumble when it comes to totalling up the average values.
I create this formula
shared numbervar TotalAverage;
TotalAverage := TotalAverage + {#Average};
I place it in the group footer and it does exactly what I want it to do. I can see #Average being summed at each group....until i place it in the Report Footer and it adds the average of the last value twice. So instead of getting 37 I get 51
Is there a way I can stop it from adding the last group twice.... or am I doing this entirely wrong
Any help would be hugely appreciated
Dan