Use the GROUP BY statement in SQL to slice and dice any data by any number of independent dimensions. Originally written for Mint, but Mint is no more. Also for Personal Capital, which is now Empower. I still use this to make sense of my financial data. Break down the results of a selection by showing the distribution of the selected data over a dimension.
For a quick demo, here is Olympic Medal data presented using breakdown.