Printing the group sum in the header requires the use of scripts because the value of a group sum is only known after all the records in the group have been processed. To display the sum in the group header (that is, before the group is output to the report) the following algorithm is used:
To see how this is accomplished, edit or copy the Resource Bottleneck Report. The scripts in this report totals two variables for printing on the group header. The script is commented for learning purposes.