top of page
hand-businesswoman-touching-hand-artificial-intelligence-meaning-technology-connection-go-
Writer's picturenirmala gokul

How to perform Forecasting in Tableau?



Image from unsplash.com

What is Tableau?

Tableau is an excellent data visualization and business intelligence tool used for reporting and analyzing vast volumes of data. It is an American company that started in 2003—in June 2019, Salesforce acquired Tableau. It helps users create different charts, graphs, maps, dashboards, and stories for visualizing and analyzing data, to help in making business decisions.


What is the purpose of forecasting?

Forecasting is a technique that uses historical data as inputs to make informed estimates that are predictive in determining the direction of future trends. Businesses utilize forecasting to determine how to allocate their budgets or plan for anticipated expenses for an upcoming period.


How to perform Forecasting in Tableau?

Dataset used in the given example is superstore.

Follow the steps below to open the worksheet:

Open the tableau tool and connect superstore.xls to it. Drag and drop sheets of the connected dataset.

Image by Author

Click on sheet1 to open the tableau worksheet

Image by Author

Drag the Order Date to the Columns

Image by Author

Need segment-wise sales so drag Segment and Sales to the Rows to find the line chart

Image by Author

Image by Author

For having region-wise sales, Now drag the Region to color under Marks as shown in the image below

Image by Author

These are four years of sales and to have both dimensions to predict next year's sales. Go to the Analytics tab and select the forecast under the Model category

Image by Author

Tableau will automatically add a line to your chart forecasting the sales for 2022. The light color around the line is the estimated range for sales.

Image by Author

We can predict for more years as well. Now click on Forecast -> Show Forecast to enable forecast for the visual.

Image by Author

You can set the Forecast Length in this menu and do the prediction for the next 3 years.

Image by Author

There are also options to adjust the Forecast Model as shown below and select Automatic.

Image by Author

Now we can see the range of the sales till 2023 by giving forecast length until 3 years.

Image by Author

Information about Forecast Options: There are various selections related to forecasting that are available in the forecasting options that can be specified according to the requirements posed.

Forecast Length The time frame for which the forecasting is to be done can be set using the forecast length option that can be set as automatic which takes up the next 5 quarters by default, the exact number of time periods, or the until time for the values to be calculated.

Source Data specific Few features that are specific to the source data like the aggregate by an option that specifies the granularity of the time series. The default option is automatic which takes up the best granularity for the estimation. For forecasting done with integer dimension instead of Date, the aggregate by is always set to Periods. Also, you can set the last few frames in a time series that can be ignored to perform forecasting.

Forecast Model The model to be produced is specified in the forecast model option. There are options like an automatic that takes up the best of the models, an automatic with no seasonality that takes up the best with no seasonal components, and a custom model where you can specify the trend and season

Hence these are simple steps to perform forecasting in tableau.



51 views0 comments

Recent Posts

See All

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page