0
0
Tableaubi_tool~20 mins

Trend lines in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Trend Line Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Trend Line Types in Tableau

Which type of trend line in Tableau best fits data that shows a consistent percentage growth over time?

ALinear trend line
BExponential trend line
CPolynomial trend line
DLogarithmic trend line
Attempts:
2 left
💡 Hint

Think about which trend line models growth that accelerates or decelerates exponentially.

visualization
intermediate
2:00remaining
Interpreting a Polynomial Trend Line

You added a polynomial trend line of order 3 to a sales over time chart in Tableau. What does this trend line help you understand?

AA curve that can capture multiple changes in sales direction
BA line that only fits exponential growth
CA straight line showing average sales growth
DA flat line showing no change in sales
Attempts:
2 left
💡 Hint

Polynomial trend lines can curve up and down multiple times.

dax_lod_result
advanced
2:00remaining
Calculating Residuals for Trend Line Analysis

In Tableau, you want to calculate the residual (difference) between actual sales and predicted sales from a linear trend line. Which calculated field formula correctly computes this residual?

A[Sales] - (WINDOW_INTERCEPT([Sales], [Date]) + WINDOW_SLOPE([Sales], [Date]) * [Date])
B[Sales] - (INTERCEPT([Sales], [Date]) + SLOPE([Sales], [Date]) * [Date])
C[Sales] - WINDOW_AVG([Sales])
DWINDOW_SUM([Sales]) - [Sales]
Attempts:
2 left
💡 Hint

Use WINDOW functions to get slope and intercept over the partition.

🎯 Scenario
advanced
2:00remaining
Choosing the Right Trend Line for Seasonal Data

Your sales data shows clear seasonal peaks and troughs every year. You want to add a trend line in Tableau to understand the overall sales trend ignoring seasonality. Which approach is best?

AAdd a linear trend line directly on the raw sales data
BAdd a polynomial trend line of order 2 on the raw sales data
CAdd an exponential trend line directly on the raw sales data
DCreate a calculated field to remove seasonality, then add a linear trend line on that field
Attempts:
2 left
💡 Hint

Think about removing repeating seasonal effects before fitting a trend line.

🔧 Formula Fix
expert
2:00remaining
Debugging a Trend Line Calculation Error

You created a calculated field in Tableau to predict sales using a linear trend line formula: INTERCEPT([Sales], [Date]) + SLOPE([Sales], [Date]) * [Date]. However, Tableau shows an error. What is the cause?

Tableau
INTERCEPT([Sales], [Date]) + SLOPE([Sales], [Date]) * [Date]
AThe multiplication operator * is not allowed in calculated fields
BDate cannot be used in calculations with sales
CThe formula is missing a WINDOW_ prefix for aggregation
DINTERCEPT and SLOPE functions require aggregation and cannot be used directly on dimensions
Attempts:
2 left
💡 Hint

Check if the functions need to be aggregated over a partition.