Challenge - 5 Problems
Logical Functions Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ dax_lod_result
intermediate2:00remaining
Output of nested IF statement in Tableau calculated field
Consider this Tableau calculated field:
What will be the result for a record where Sales = 750?
IF [Sales] > 1000 THEN 'High' ELSEIF [Sales] > 500 THEN 'Medium' ELSE 'Low' END
What will be the result for a record where Sales = 750?
Tableau
IF [Sales] > 1000 THEN 'High' ELSEIF [Sales] > 500 THEN 'Medium' ELSE 'Low' END
Attempts:
2 left
💡 Hint
Think about the order of conditions and which one matches first.
✗ Incorrect
Since 750 is not greater than 1000, the first condition fails. The second condition checks if Sales is greater than 500, which is true, so the result is 'Medium'.
❓ visualization
intermediate2:00remaining
Best visualization to show CASE statement categories
You have a calculated field using CASE to categorize customers by region:
Which visualization best shows the count of customers in each group?
CASE [Region]
WHEN 'East' THEN 'Group 1'
WHEN 'West' THEN 'Group 2'
ELSE 'Group 3'
END
Which visualization best shows the count of customers in each group?
Attempts:
2 left
💡 Hint
Think about how to show parts of a whole clearly.
✗ Incorrect
A pie chart clearly shows the proportion of customers in each group defined by the CASE statement.
🧠 Conceptual
advanced2:00remaining
Difference between IF and IIF in Tableau
Which statement correctly describes the difference between IF and IIF functions in Tableau?
Attempts:
2 left
💡 Hint
Consider how each function processes its arguments.
✗ Incorrect
IIF evaluates both the true and false expressions regardless of the condition, which can affect performance or cause errors if one side is invalid. IF evaluates only the branch that matches the condition.
🔧 Formula Fix
advanced2:00remaining
Identify error in CASE statement syntax
What error will this Tableau calculated field produce?
CASE [Category]
WHEN 'A' THEN 1
WHEN 'B' THEN 2
ELSE 3
Tableau
CASE [Category] WHEN 'A' THEN 1 WHEN 'B' THEN 2 ELSE 3
Attempts:
2 left
💡 Hint
Check if the CASE statement is properly closed.
✗ Incorrect
Tableau CASE statements must end with END. Missing END causes a syntax error.
🎯 Scenario
expert3:00remaining
Using nested logical functions for complex categorization
You want to create a calculated field in Tableau that categorizes sales performance as:
- 'Excellent' if Sales > 1000 and Profit > 200
- 'Good' if Sales > 1000 and Profit ≤ 200
- 'Average' if Sales ≤ 1000 and Profit > 100
- 'Poor' otherwise
Which calculated field expression correctly implements this logic?
- 'Excellent' if Sales > 1000 and Profit > 200
- 'Good' if Sales > 1000 and Profit ≤ 200
- 'Average' if Sales ≤ 1000 and Profit > 100
- 'Poor' otherwise
Which calculated field expression correctly implements this logic?
Attempts:
2 left
💡 Hint
Check that all conditions match the exact logic and order.
✗ Incorrect
Option A uses CASE with combined conditions matching the exact logic. Other options either misorder conditions or do not fully match the logic.