You will want to utilize Groups and the sum(summary) function in your model.
Groups are added by selecting the items you want to group, then using Insert > Group Items from the menu.
The sum(summary) function allows for sub-totals (and sub-averages) and does not get included in the grand total (or overall average).
Please see attached model for a demonstration. Please feel to post again if you have further questions.