Complete the code to create a calculated field that finds the average sales.
AVG([1])The correct syntax to calculate average in Tableau is AVG([Sales]). Here, you only put the field name inside AVG().
Complete the code to create a calculated field that flags sales greater than 1000.
IF [1] > 1000 THEN 'High' ELSE 'Low' END
To compare individual sales values, use the field [Sales] directly in the IF statement.
Fix the error in this calculated field to correctly compute the running total of sales.
RUNNING_SUM([1])RUNNING_SUM requires an aggregation like SUM([Sales]) inside its parentheses.
Fill both blanks to create a calculated field that segments sales into 'High' and 'Low' based on average sales.
IF [1] > [2] THEN 'High' ELSE 'Low' END
Compare each sale [Sales] to the average sales AVG([Sales]) to segment data.
Fill both blanks to create a calculated field that calculates percentage difference from average sales.
([Sales] - [1]) / [2] * 100
Subtract average sales AVG([Sales]) from [Sales], divide by AVG([Sales]), multiply by 100. No extra function needed at the end.