transactions format getTotalsByCategory