Most real tables have gaps. A gap can mean "nothing happened", "we don't know" or "this doesn't apply", and those are three different facts. A chart can't tell them apart unless the table does.

Three things a gap can mean

  • Zero. Something was measured and the answer was none: no sales that day, no budget for that team. Zero is a real value. It counts in a total, it pulls an average down, and a line drops to it.
  • Unknown. Something should have a value, but nobody recorded it: a sensor was offline, a form was left half filled. It isn't zero. Treating it as zero tells the reader something false.
  • Doesn't apply. There's no value because the question doesn't fit the row: the end date of a contract that's still running, or the reason an account is locked when it isn't locked at all.

A blank cell can stand for any of the three. That's the problem: the cell looks the same either way.

What a blank does

Tools treat an empty cell as "no value", which is closest to unknown. Here's what that means for the common calculations:

  • Sum skips it. The total is the total of the values that are there.
  • Average skips it too, so it averages over fewer rows. That's right when the value is unknown, and wrong when the blank should have been a zero.
  • Count depends on what you count: counting rows includes it, counting values doesn't.
  • A line has nothing to draw at that point. Depending on the tool, it leaves a gap, joins the points on either side, or drops to zero. Only the gap is honest when the value is unknown.

So the same blank can make an average higher than it should be, or a line look smoother than the data really was.

A worked example

A table of department spending has a row for each department, with its Actual spend and its Budget. One row stands out:

Department Actual Budget
Research 150 0

Research spent 150 against a budget of 0. Is that a real zero, meaning Research was given no money and overspent, or does it mean "no budget was set"? The table can't say, and the answer changes the story:

  • As a real zero, Research is the worst result in the table: every dollar it spent was over budget.
  • As no budget set, the comparison doesn't apply. The cell should be blank, and a chart should show Research's spending without a target.

The average budget changes too. With the zero, it's 461.25. With a blank instead, it's about 527.

A bullet chart of the "Department Budget vs Actual" dataset: each Department's Actual as a bar, with a mark at its Budget.
A bullet chart of the "Department Budget vs Actual" dataset: each Department's Actual as a bar, with a mark at its Budget.

How to read this Bullet chart Try it in the explorer

Make the gap say what it means

When you own the table, decide what each gap means and make it visible:

  1. A real zero stays a 0.
  2. An unknown stays blank, and a note says why ("sensor offline 3 to 5 March").
  3. Doesn't apply stays blank, and another field explains it, such as a Locked field beside the lock reason. In a table of sales accounts, a LockReason cell is blank exactly when the account's Locked field is false, so the blank is never a mystery.

Avoid typing "n/a" or "unknown" into a number field. As the last lesson showed, one text value can turn the whole field into text.

Try it

Pick a field with blanks in one of your tables. For each blank, write which of the three it is: zero, unknown or doesn't apply. If you can't tell, neither can the chart, and that's worth fixing at the source.

This is the end of the first module. The next one gives each field a role, category, measure, date, place or identifier, and shows how to say what one row stands for.