How can we predict future sales for the next 6 months based on past sales data?
Forecasting in Tableau - Dashboard Guide
Start learning this pattern below
Jump into concepts and practice - no test required
or
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Dashboard Mode - Forecasting
Business Question
Sample Data
| Month | Sales |
|---|---|
| 2023-01 | 1200 |
| 2023-02 | 1350 |
| 2023-03 | 1500 |
| 2023-04 | 1600 |
| 2023-05 | 1700 |
| 2023-06 | 1800 |
| 2023-07 | 1900 |
| 2023-08 | 2000 |
| 2023-09 | 2100 |
| 2023-10 | 2200 |
| 2023-11 | 2300 |
| 2023-12 | 2400 |
Dashboard Components
- KPI Card: Total Sales This Year
Formula: SUM([Sales]) = 22,600 - Line Chart: Monthly Sales Trend
Shows sales from Jan to Dec 2023. - Forecast Chart: Sales Forecast Next 6 Months
Uses Tableau's built-in forecasting model to predict sales from Jan to Jun 2024 based on past data. - Table: Actual vs Forecast
Shows side-by-side sales and forecast values for the last 3 months and next 6 months.
Dashboard Layout
+----------------------+-----------------------------+ | KPI Card | Line Chart | | Total Sales 2023 | Monthly Sales Trend 2023 | +----------------------+-----------------------------+ | Forecast Chart (6 months) | | Sales Forecast Next 6 Months | +----------------------------------------------------------+ | Table: Actual vs Forecast | +----------------------------------------------------------+
Interactivity
A date range filter allows users to select months to view. When changed, the KPI card, line chart, forecast chart, and table update to reflect the selected months. The forecast automatically recalculates based on the filtered historical data.
Self Check
Add a filter to show only months from July 2023 onward. Which components update?
Answer: The KPI card will show total sales from July to December 2023. The line chart will display sales trend from July to December. The forecast chart will generate predictions based on sales from July to December. The table will update actual and forecast values accordingly.
Key Result
A sales dashboard showing total sales, monthly trends, and a 6-month forecast using Tableau's forecasting feature.
Practice
1. What is the main purpose of forecasting in Tableau?
easy
Solution
Step 1: Understand forecasting concept
Forecasting uses past data to estimate future values.Step 2: Identify Tableau's forecasting role
Tableau applies forecasting models automatically to predict trends.Final Answer:
To predict future data points based on historical trends -> Option AQuick Check:
Forecasting = Predict future trends [OK]
Hint: Forecasting always means predicting future values [OK]
Common Mistakes:
- Confusing forecasting with data cleaning
- Thinking forecasting creates static reports
- Assuming forecasting filters data
2. Which of the following is the correct way to add a forecast in Tableau?
easy
Solution
Step 1: Recall Tableau forecast adding method
Forecasts are added by right-clicking the view and choosing 'Add Forecast'.Step 2: Eliminate incorrect options
Forecast is not a field to drag or a calculated function; filtering dates doesn't add forecasts.Final Answer:
Right-click on the view and select 'Add Forecast' -> Option DQuick Check:
Add Forecast = Right-click menu [OK]
Hint: Add forecast via right-click menu on the chart [OK]
Common Mistakes:
- Trying to drag a non-existent Forecast field
- Using calculated fields for forecasting
- Confusing filters with forecast options
3. Given a time series chart in Tableau with monthly sales data, what will happen if you increase the forecast length from 3 months to 6 months?
medium
Solution
Step 1: Understand forecast length setting
Forecast length controls how far into the future Tableau predicts data.Step 2: Effect of increasing forecast length
Increasing from 3 to 6 months extends the prediction period accordingly.Final Answer:
The forecast will predict sales for 6 months into the future instead of 3 -> Option AQuick Check:
Forecast length = prediction period [OK]
Hint: Longer forecast length means longer future prediction [OK]
Common Mistakes:
- Thinking forecast shortens when length increases
- Assuming forecast disappears with longer length
- Believing forecast resets automatically
4. You added a forecast in Tableau but it shows an error message saying 'Insufficient data for forecasting'. What is the most likely cause?
medium
Solution
Step 1: Analyze error message meaning
'Insufficient data' means not enough historical points to model a forecast.Step 2: Identify common causes
Too few time points prevent Tableau from calculating trends; other options don't cause this error.Final Answer:
The data has too few time points to create a forecast -> Option BQuick Check:
Insufficient data = too few time points [OK]
Hint: Check if time series has enough data points [OK]
Common Mistakes:
- Assuming short forecast length causes error
- Ignoring date field type importance
- Blaming negative values for forecast errors
5. You want to forecast quarterly sales for the next year in Tableau. Your data has monthly sales for 3 years. Which steps should you take to create an accurate forecast?
hard
Solution
Step 1: Aggregate data to match forecast period
Since forecasting quarterly sales, convert monthly data to quarterly sums.Step 2: Set forecast length and review intervals
Add forecast for 4 quarters (1 year) and check confidence intervals for reliability.Final Answer:
Convert monthly data to quarterly, add forecast for 4 quarters, and check confidence intervals -> Option CQuick Check:
Match data granularity and forecast length [OK]
Hint: Match data granularity to forecast period [OK]
Common Mistakes:
- Forecasting monthly data for quarterly without aggregation
- Ignoring confidence intervals
- Filtering data too narrowly before forecasting
