Use script. It is a four step procedure:
(1) use
API_DoQuery to gather the raw un-aggregated data in
XML(2) convert
XML to
JSON
(3) use
Underscore to aggregate / summarize / process / calculate with your
JSON data. Underscore is a Swiss army knife for processing data and includes methods for
groupBy(),
sortBy(),
IndexBy(),
CountBy() and every manner of
filtering and
aggregation you could think of. See:
http://underscorejs.org/(4) render your resulting
JSON to
HTML or post it to a table using
API_AddRecord or
API_ImportFromCSV