Skip to content

Iif

Logic & variables

Iif(cond, then, else)

The simple if/else (compiles to SQL CASE WHEN). Both branches must share one type (SQX006).

  • Quick two-way flags on measure values — target hit?, positive or negative? For three or more branches, use Case.
RevenueOrZero := Iif([Revenue] > 0, [Revenue], 0)