How total table revenue by Date for each Table?

Try adding .sum after value field like T.TotalAmount.sum