Flag above-average months with IF and two measures

Compare two measures in one IF to label every month “Above average” or “Below average”, with a benchmark that adapts to the report’s filters.

You will learn to

  • Compare two measures inside an IF condition
  • Explain why a measure benchmark beats a typed-in number
  • Return a text label from a measure

How it works

An IF condition can compare a measure with another **measure**, not just with a fixed number. Both sides are calculated for the current row first, then compared.

That makes the benchmark smart. The model’s `[Monthly Average]` ignores the month you are looking at and averages all 24 months, but it still respects other filters. In a month row it is the company’s average month; with a Water Bottle filter it becomes the average month for water bottles.

Type the average in as a number instead and it can never adapt: every water bottle month would be “below” a figure built from bikes.

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

vs Last Year = IF([Total Sales] > [Sales LY], "Up on last year", "Not up")