Complete the code to create a manual sort order using a calculated field in Tableau.
CASE [Category] WHEN 'Furniture' THEN [1] WHEN 'Office Supplies' THEN 2 WHEN 'Technology' THEN 3 ELSE 4 END
In Tableau, manual sort order can be created by assigning numeric values to categories. The number 1 is used here to assign the highest priority to 'Furniture'.
Complete the code to sort products manually by priority using a calculated field.
IF [Product] = 'Printer' THEN [1] ELSE 2 END
Assigning 1 to 'Printer' gives it the highest priority in sorting.
Fix the error in the manual sort order calculation.
CASE [Region] WHEN 'East' THEN [1] WHEN 'West' THEN 2 WHEN 'South' THEN 3 ELSE 4 END
Numbers should be used without quotes for sorting in Tableau. Using '1' as a string causes errors.
Fill both blanks to assign manual sort order for categories and subcategories.
CASE [Category] WHEN 'Technology' THEN [1] WHEN 'Furniture' THEN [2] ELSE 3 END
Use numeric values without quotes to assign manual sort order: 1 for Technology and 2 for Furniture.
Fill all three blanks to create a manual sort order for regions with priority.
CASE [Region] WHEN 'North' THEN [1] WHEN 'East' THEN [2] WHEN 'West' THEN [3] ELSE 4 END
Assign numeric values 1, 2, and 3 without quotes to set manual sort order for North, East, and West regions respectively.