Complete the code to assign a color to the 'Sales' measure in Tableau.
SUM([1])In Tableau, to color encode by sales, you use the SUM of the 'Sales' field.
Complete the code to create a calculated field that colors marks red when Sales are below 5000.
IF SUM(Sales) [1] 5000 THEN 'Red' ELSE 'Green' END
To color marks red when sales are below 5000, use the less than operator <.
Fix the error in the calculated field to color marks based on Sales above 10000.
IF SUM(Sales) [1] 10000 THEN 'Blue' ELSE 'Orange' END
The correct operator for 'greater than or equal to' in Tableau is >=.
Fill both blanks to create a color encoding that marks sales between 3000 and 7000 as Yellow.
IF SUM(Sales) [1] 3000 AND SUM(Sales) [2] 7000 THEN 'Yellow' ELSE 'Gray' END
To check if sales are between 3000 and 7000 inclusive, use >= 3000 and <= 7000.
Fill all three blanks to create a color encoding that marks sales above 8000 as Green, below 4000 as Red, and others as Blue.
IF SUM(Sales) [1] 8000 THEN 'Green' ELSEIF SUM(Sales) [2] 4000 THEN 'Red' ELSE [3] END
Use > 8000 for green, < 4000 for red, and 'Blue' for all other sales.