Complete the code to return 'High' if Sales is greater than 1000.
IF [Sales] [1] 1000 THEN 'High' ELSE 'Low' END
The IF statement checks if Sales is greater than 1000 using the '>' operator.
Complete the IIF function to return 'Yes' if Profit is positive, otherwise 'No'.
IIF([Profit] [1] 0, 'Yes', 'No')
The IIF function checks if Profit is greater than 0 to return 'Yes'.
Fix the error in the CASE statement to categorize Region correctly.
CASE [Region] WHEN 'East' THEN 'East Coast' WHEN 'West' [1] 'West Coast' ELSE 'Other' END
In a CASE statement, each condition uses WHEN ... THEN ... syntax. The missing keyword is THEN.
Fill both blanks to create a CASE statement that returns 'Low', 'Medium', or 'High' based on Sales.
CASE WHEN [Sales] [1] 500 THEN 'Low' WHEN [Sales] [2] 1500 THEN 'Medium' ELSE 'High' END
The first condition checks if Sales is less than or equal to 500 for 'Low'. The second checks if Sales is less than 1500 for 'Medium'. Otherwise, it's 'High'.
Fill all three blanks to create an IIF nested function that returns 'Profit', 'Loss', or 'Break-even' based on Profit value.
IIF([Profit] [1] 0, 'Profit', IIF([Profit] [2] 0, 'Loss', [3]))
The first IIF checks if Profit is greater than 0 for 'Profit'. The nested IIF checks if Profit is less than 0 for 'Loss'. Otherwise, it returns 'Break-even'.