Returns Value 1 for every row where the first condition is met. If more than one condition is supplied, subsequent conditions are evaluated and return their corresponding values. If all conditions are False, then the Else value is applied.
Category: logical
Syntax:
Returns: AnyColumn
Context Filtering: ✓ Yes
Parameters
Validation
- Minimum parameters: 2
- Maximum parameters: Unlimited
Examples
Assign “small” to sizes less than 3, “medium” to sizes less than 6, and “large” to all other sizes.
Categorize a record as a profit or a loss based on revenue and cost.
- Switch - Better for matching specific values
- Between - Check if value is in a range
- In - Check if value matches any in a list
Last modified on March 13, 2026