Complete the code to add a forecast to your Tableau visualization.
Right-click on the visualization and select [1] to add a forecast.
In Tableau, to add a forecast, you right-click on the visualization and select Forecast.
Complete the code to specify the forecast length in Tableau.
In the Forecast Options dialog, set the [1] to define how far ahead you want to predict.The Forecast Length option lets you specify how many periods into the future Tableau should predict.
Fix the error in the Tableau forecast calculation expression.
IF DATEPART('month', [Order Date]) = [1] THEN [Sales] ELSE 0 END
The DATEPART function returns a number for the month, so to compare it correctly, use 1 for January.
Fill both blanks to create a calculated field that forecasts sales growth rate.
([Sales] - [1]) / [2]
The formula calculates growth rate by subtracting previous sales from current sales, then dividing by current sales.
Fill all three blanks to write a LOD expression that calculates average sales per customer.
{ FIXED [1] : AVG([2]) } / [3]This LOD expression fixes the calculation by customer, averages sales, then divides by the distinct count of customers to get average sales per customer.