The rows can be grouped by any number of fields with group Titles and aggregates/summary (optional).

Summary for every group can be shown at the end of every group in separate row ( with groupModel.showSummary option )
or in same row as group title row ( with groupModel.summaryInTitleRow option ).

See documentation of groupModel for all possible combination of views.