Xojo Report Writer

I am using the built in Xojo report writer and I am attempting to average a group of scores. I know in the group band you can SUM totals on a numeric field but is there a way to average totals.
The report prints a listing of students by class and within that class lists the grades in which the student has received for that semester. I just want to print the average grade by class.

Any help would be greatly appreciated.

You can add a ReportField and use BeforePrinting event, some like:

Field7.Text= Str(Val(FieldSum.Text)/ FieldCountValue)

FieldCountValue is a count of students, you need to evaluate before to run report.