A table where X, Y and Z have some individual amounts.
Sample data:
Name | Amount | Date —————|————————|————————— X | 100 | 15-11-17 Y | 50
You can use SUM(Amount) with groupBy(date)