get transactions totals by month