Good morning,
this is my script for forecasting and it works vey well.
---
[AAAAAA]:
LOAD
esecompet as RF_ForYear1,
right(mese_competenza,2) as RF_ForMonth1,
saldo as Revenue
FROM ...;
Trend_Dates:
LOAD
Display_Date,
Month(Display_Date) AS ForMonth,
Year(Display_Date) AS ForYear;
LOAD
MonthStart(ADDMONTHS(TODAY(),RecNo()-1)) AS Display_Date
AUTOGENERATE 24;
Random_Finance:
Load *,
MonthStart(MakeDate(RF_ForYear1, RF_ForMonth1)) As Display_Date;
LOAD
RF_ForYear1, RF_ForMonth1, Revenue Resident AAAAA;
---
I would like to calculate different kind of predictions with the same data but with different times...
For example:
calculate the slope_m for the last 6 months and predict it;
then the same things with the last 3 months and predict it.. and so on...
And get something like this.. where the blue line is the prediction with all the data, the red one is the last 3 month and black 6 month.... How can i do it?
