So for example lets say I am reporting weekly forecasts on a 3 month cycle ( right now its Sept, Oct, Nov). I export and write to an excel sheet. Now when a new month starts (October), I want to report on the previous month(Sept) one last time and append a new month (December) to keep the 3 month cycle. I want to be able to Overwrite what is in the table (excel) for September (as now these turn from forecasts to actuals),October, and November and then append the forecasted numbers for new month of December.
Currently I just copy and paste the output from Alteryx over to the excel but I would like to automate this, but I am unsure about how to deal with this scenario. The problem I am facing is that when overwriting you have to specify a range you want to overwrite but in my case that range I want to overwrite changes for every new month (i.e a new month is introduced thus making the excel longer changing the range).
So this is what is looks like for the last week of September. Although there will be more rows for different stores etc.
| Month | Year | Sales |
| September | 2021 | 240 |
| October | 2021 | 250 |
| November | 2021 | 300 |
Now when I run it again first week of October I would like it to overwrite September, October, November and Append December Numbers.
| Month | Year | Sales |
| September | 2021 | 280 |
| October | 2021 | 300 |
| November | 2021 | 350 |
| December | 2021 | 400 |
For the first week of every new month I would like to overwrite the previous month and the 2 other reported months then also append the new month. Then continue overwriting all 3 months until the first week of the next month in which October will be overwritten one last time and then January 2022 will be added so then I will be reporting on (Nov, Dec, Jan)