Running total: ETL or MySql?
I want to create a running total that resets every year. I've seen posts for doing it with ETL and a window function and others for MySQL and I am lost on which way would be best.
The data table is similar to this :
Month Revenue Reimbursables
1/1/2018 100 5
2/1/2018 97 11
3/1/2018 102 8 etc.
In ETL, I calculate the Net Revenue (for the running total) and extract the year from the date. When it comes to the window function, what is the preceding and following? Where do I enter to reset when year changes? Thanks