What will be the result if the total sales amount is 750?
medium
A. 750
B. "High"
C. "Low"
D. Error
Solution
Step 1: Evaluate the condition
The condition checks if total sales (750) is greater than 1000. 750 > 1000 is false.
Step 2: Determine the IF result
Since the condition is false, the IF function returns the false_result, which is "Low".
Final Answer:
"Low" -> Option C
Quick Check:
750 > 1000 is false, so result = "Low" [OK]
Hint: Check condition result true/false to pick IF output [OK]
Common Mistakes:
Assuming 750 is greater than 1000
Returning the numeric value instead of text
Confusing true and false results
4. Identify the error in this DAX formula:
Discount Status = IF SUM(Sales[Amount]) > 500, "Discount", "No Discount")
medium
A. No error, formula is correct
B. Missing parentheses around the IF arguments
C. Incorrect column name Sales[Amount]
D. Using double quotes instead of single quotes
Solution
Step 1: Check IF function syntax
The IF function requires parentheses enclosing all arguments: IF(condition, true_result, false_result).
Step 2: Identify missing parentheses
The formula lacks opening parentheses after IF and has an extra closing parenthesis at the end.
Final Answer:
Missing parentheses around the IF arguments -> Option B
Quick Check:
IF syntax needs parentheses [OK]
Hint: Always wrap IF arguments in parentheses [OK]
Common Mistakes:
Forgetting parentheses after IF
Confusing quotes usage (double quotes are correct here)
Assuming column name is wrong without checking
5. You want to create a new column that labels sales as "High", "Medium", or "Low" based on Sales[Amount]: - "High" if amount > 1000 - "Medium" if amount between 500 and 1000 (inclusive) - "Low" if amount < 500
Which DAX formula correctly uses nested IF functions to achieve this?
"High" if >1000, "Medium" if between 500 and 1000 inclusive, "Low" if less than 500.
Step 2: Check nested IF logic and operators
Sales Level = IF(Sales[Amount] > 1000, "High", IF(Sales[Amount] >= 500 && Sales[Amount] <= 1000, "Medium", "Low")) correctly uses AND (&&) with >= and <= for the medium range. The other options have incorrect operators or use OR (||) which breaks the logic.