Label results with IF: did we hit the target?

Turn a number into a plain-English answer — show “Hit” or “Missed” next to each month’s sales with IF.

You will learn to

  • Write a condition that is true or false
  • Return one of two results with IF
  • Build a measure that returns text

How it works

`IF(condition, value if true, value if false)` checks a condition and returns one of two results.

The condition is a comparison such as `[Total Sales] >= 15000`. You can use `=`, `<>` (not equal), `>`, `<`, `>=` and `<=`. Write numbers without commas or dollar signs.

The results can be numbers or text. Text goes in double quotes, like `"Hit"`. Because the measure is recalculated for every row of a visual, each month gets its own answer.

Practice it hands-on with a real data model and a live report that updates as you type.

Order Size = IF(SUM(Sales[Quantity]) >= 500, "Busy", "Quiet")