0
0
Tableaubi_tool~5 mins

Logical functions (IF, IIF, CASE) in Tableau - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner

What does the IF function do in Tableau?

The IF function checks a condition and returns one value if the condition is true, and another value if it is false.

Click to reveal answer
beginner

How is IIF different from IF in Tableau?

IIF is a shorthand for IF that always requires three parts: condition, value if true, and value if false. It is simpler for quick true/false checks.

Click to reveal answer
intermediate

What is the purpose of the CASE function in Tableau?

CASE evaluates an expression and compares it to multiple values, returning the matching result. It is like a cleaner way to write multiple IF statements.

Click to reveal answer
beginner

Write a simple IF statement in Tableau to check if Sales are greater than 1000.

IF [Sales] > 1000 THEN 'High' ELSE 'Low' END

Click to reveal answer
intermediate

When should you use CASE instead of multiple IF statements?

Use CASE when you have one expression to compare against many fixed values. It makes your formula easier to read and maintain.

Click to reveal answer

Which function in Tableau requires a condition, a true result, and a false result all in one line?

AIIF
BIF
CCASE
DSUM

What does the CASE function do?

AChecks one expression against multiple values
BCalculates sum of values
CFilters data
DCreates a new data source

Which keyword ends an IF statement in Tableau?

ADONE
BSTOP
CFINISH
DEND

What will this formula return if [Sales] = 500? <br>IF [Sales] > 1000 THEN 'High' ELSE 'Low' END

A'High'
B'Low'
CError
DNull

Which function is best for checking multiple conditions with different outcomes?

AAVG
BSUM
CCASE
DIIF

Explain how IF and IIF functions work in Tableau and when you might use each.

Think about how you check conditions and return values.
You got /4 concepts.

    Describe a scenario where using CASE is better than multiple IF statements in Tableau.

    Consider when you compare one value to many options.
    You got /4 concepts.