Summarise a table by categories with sum, count, average, minimum, maximum and distinct count, with totals and a chart.