Adds method for getting a result as totals over time