Forecast Aggregation

Hello,
I am using the ML forecasting feature for some of my line level transaction data. Within the visuals that I have included the forecast it is usually accurate for daily data but when I aggregate to Weekly and Monthly forecasts they assume those week’s or months are complete when partial data is loaded. Data is added each day so the weekly forecasts are only accurate after saturday data has loaded. Is there a way to have it recognize not all data has been loaded for certain periods?

Also, is there a way to compare actual results to the projections as more data is added each day? Below are screenshots of the forecast graphics.



Hello @mkelley !

My team has done something similar in the past using a calculation similar to the one below to show only data for completed weeks:

ifelse(
${ENDTIME} <= now() AND extract('WD', ${ENDTIME}) >= 6 AND extract('WD', ${ENDTIME}) <= 7 AND DATE <= ${ENDTIME} AND DATE >= TrendStartDate, 
DATE,
${ENDTIME} >= now() AND extract('WD', now()) >= 6 AND extract('WD', now()) <= 7 AND DATE <= now() AND DATE >= {your_date_field}, 
DATE,
${ENDTIME} >= now() AND extract('WD', now()) < 6  AND DATE <= addDateTime(-(extract('WD', now())), 'DD', now()) AND DATE >= {your_date_field}, 
DATE,
${ENDTIME} <= now() AND extract('WD', ${ENDTIME}) < 6 AND DATE <= addDateTime(-(extract('WD',${ENDTIME})), 'DD', ${ENDTIME}) AND DATE >= {your_date_field}, 
DATE,
NULL
)

Small note with this, QuickSight will show this on a line graph as the first day of that week so for example the data for last week would be called “April 7”.

For your last question, I’m not sure that there is a way to pull the data from the forecast, and I don’t think its possible to use the colour by when using forecasting in a line graph.

1 Like

Hello @mkelley, since we have not heard back from you, I will mark the last response from @duncan as the solution. If you have any further questions on this issue, please let us know. Thank you!