Customizing Table Formats and Aggregations

Answered in Syntax error in custom table format - #2 by Specify