Complete the code to add a linear trend line to the scatter plot.
Add Trend Line: Model Type = [1]The linear model fits a straight line to the data points, showing a simple trend.
Complete the code to display the R-squared value on the trend line.
Show Trend Line Summary: Display [1]R-squared shows how well the trend line fits the data, with values closer to 1 indicating a better fit.
Fix the error in the calculation of the trend line equation.
Trend Line Equation: y = [1] * x + bThe slope represents the rate of change of y with respect to x in the trend line equation.
Fill both blanks to create a calculated field for the predicted value using the trend line.
Predicted Value = [1] * [Sales] + [2]
The predicted value is calculated by multiplying the slope by the sales value and adding the intercept.
Fill all three blanks to write a Tableau LOD expression that calculates the average sales per category for trend analysis.
{ FIXED [1] : AVG([2]) } + [3]The expression fixes the calculation by category, averages sales, and adds zero to keep numeric type consistent.