Complete the code to create a calculated field in Tableau that sums sales.
SUM([1])The SUM function in Tableau adds up all values in the specified field. Here, we sum the 'Sales' field.
Complete the code to filter data in Tableau to show only records where Profit is positive.
[Profit] [1] 0
To filter for positive profits, use the greater than operator '>'.
Fix the error in this Tableau LOD expression to calculate total sales per region.
{FIXED [Region]: SUM([1])}The LOD expression fixes the calculation by region summing the 'Sales' field.
Fill both blanks to create a calculated field that shows average profit per category only for profits above zero.
IF [Profit] [1] 0 THEN AVG([2]) END
The IF condition filters profits greater than zero, then calculates average profit.
Fill all three blanks to create a calculated field that returns 'High' if sales exceed 10000, 'Medium' if sales are between 5000 and 10000, else 'Low'.
IF [Sales] [1] 10000 THEN 'High' ELSEIF [Sales] [2] 5000 AND [Sales] [3] 10000 THEN 'Medium' ELSE 'Low' END
The first condition checks if sales are greater than 10000 for 'High'. The second checks if sales are greater than or equal to 5000 and less than or equal to 10000 for 'Medium'. Otherwise, it returns 'Low'.