Skip to main content

if

Returns one of two values based on a condition.
Example:
The three arguments are:
  1. A condition
  2. The result when the condition is true
  3. The result when the condition is false
The two result expressions should represent compatible types. You can nest if calls:
For several categories or exceptions, a dimension-based formula may be easier to maintain than a deeply nested expression.