The grouping feature on lists makes it easy to create counts and sum field values by up to 3 different grouping levels.
Using Calculated Columns, it is possible to create more complex calculations that combine multiple fields and choose from a wide variety of built-in functions.