Presenting the forecast
In this section, we'll create a time series diagram with Data Studio in order to graphically present the forecast results.
Using the following query, we can create a table that contains both the historical and forecasted values:
CREATE OR REPLACE TABLE `08_sales_forecasting.iowa_liquor_sales_forecast` AS SELECT history_date AS date, history_value, NULL AS forecast_value, NULL AS prediction_interval_lower_bound, NULL AS prediction_interval_upper_bound FROM ( SELECT date AS history_date, total_sold_liters AS history_value FROM `08_sales_forecasting.iowa_liquor_sales` ) UNION ALL SELECT CAST(forecast_timestamp AS DATE) AS date, NULL AS history_value, forecast_value, ...