I am having trouble summing a summed group. Group 1 is based on a Reading Route, Group 2 is based on the Meter Number, The Detail section has the Meter Readings for the Group 2 Meter Number. The GF2 sum is working fine, but I also would like to sum all of the GF2's in GF1. The answer I get in GF1 is the last GF2 value, not the Sum of all the GF2 values.
Below is what I have that is not working.
GH1 {Reading Route}
GH2 (Meter Number}
Detail {Meter Readings}
GF2 {@_Sum of Meter Readings} "This works fine"
GF1 {@_Sum of GF2} "This is not working"
Below are the formulas for Group 1:
//GH1
whileprintingrecords;
numbervar grp1sum := 0;
//GF1
whileprintingrecords;
numbervar grp1sum := grp1sum + {@f_G2Footer};
Thank you for any help.
Below is what I have that is not working.
GH1 {Reading Route}
GH2 (Meter Number}
Detail {Meter Readings}
GF2 {@_Sum of Meter Readings} "This works fine"
GF1 {@_Sum of GF2} "This is not working"
Below are the formulas for Group 1:
//GH1
whileprintingrecords;
numbervar grp1sum := 0;
//GF1
whileprintingrecords;
numbervar grp1sum := grp1sum + {@f_G2Footer};
Thank you for any help.