Add a sum for each category of transactions