please refer to my example of dealing with totals (see link).. basicly instead of another total you can create a value for AVG and "voila". I have attached there a working files so you can look at the code
cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.