Hide misleading numbers with ISBLANK and BLANK()
Stop a year-over-year change from showing a full year of sales as “growth” by returning BLANK() when there is no last-year figure.
You will learn to
- Test for a missing value with ISBLANK
- Return nothing on purpose with BLANK()
- Spot calculations that treat blank as zero
How it works
Blank is not the same as zero, but arithmetic treats it like one. `[Total Sales] - [Sales LY]` in a month with no last-year data is sales minus nothing, so a brand-new year shows its entire sales as “growth”.
Two functions fix that:
- `ISBLANK(value)` is true when the value is blank. - `BLANK()` returns blank on purpose. Visuals leave blank points out, and a matrix hides rows where every measure is blank.
So test first, and only calculate when it makes sense. DIVIDE already returns blank for a missing denominator, which is why percentage changes often look right on their own; differences need the test.
Practice it hands-on with a real data model and a live report that updates as you type.
Avg Price Paid = IF(ISBLANK([Total Quantity]), BLANK(), [Total Sales] / [Total Quantity])