hope you are staying safe ! . I have a requirement to defer income from our memberships sales over 12 months. my table has 2 columns :
1. SaleDate.
2. Revenue
I need to split the revenue into 12 months . for example if the membership cost $1200 and is sold on june 17 then each month would get $100 and the date needs to look like this
Date Revenue
June 100
july 100
August 100
September 100
and so on until May .
So it's basically a running total of all the revenue we make divided by the next 12 months . and we would do the same thing every month. Any help would be appreciated.
Perhaps with a
CROSS JOIN
Example
Returns