If you absolutely need to have a value in the Group1 header, I think your only option would be an SQL expression.
Group1 footer will be much simpler. The bottom line is that you can simply track the sum of the maximum values ββwith a variable.
//Place this formula in the Group1 Header whileprintingrecords; numbervar g1sum := 0; //Place this formula in the Group2 Footer whileprintingrecords; numbervar g1sum; g1sum := g1sum + maximum({table.value},{table.group2_field}) //Place this formula in the Group1 Footer whileprintingrecords; numbervar g1sum;
source share