I want to merge two tables that have a Date column and a running total column. I need to UNION dates columns from bot tables then ORDER BY Date.
Given data:
GROUP BY 'Date'
Date | Running total | Running Closed Total
4/4/2022 | 4 |
4/5/2022 | | 1
4/6/2022 | 7 | 3
4/10/2022 | 8 |
4/20/2022 | | 4
5/10/2022 | | 5
Desired output:
Date | Running total | Running Closed Total | Difference
4/4/2022 | 4 | | 4
4/5/2022 | | 1 | 3
4/6/2022 | 7 | 3 | 7
4/10/2022 | 8 | | 15
4/20/2022 | | 4 | 11
5/10/2022 | | 5 | 6
I thought it would be something like this
SUM('Running Totals' - 'Running Closed Totals')