A field doesn't just hold values; it holds one kind of value. That kind decides what a chart can do with the field: add it up, put it in order, place it on a calendar, or only use it as a label.

Five kinds you'll meet

  • Text. Names, codes, categories: "Engineering", "BOS", "P0001". You can group by text and count it, but you can't add it up.
  • Whole numbers. Counts and other values with no fraction: visits, units sold, bedrooms. You can add them up and average them.
  • Decimals. Measurements and money: a temperature of 98.6, a price of 19.99. They add up and average like whole numbers, and they show differences finer than one.
  • Dates and times. A day, a month, a moment. They have an order and a spacing: the gap between March and June is three months, and a chart can space them out to match.
  • True or false. Yes-or-no facts: cancelled or not, active or not. You can count them ("how many were cancelled?") or use them to split rows into two groups.

The same characters can be different kinds. "2024" might be a year on a time axis or a label like a product code. "07" might be a month, or the start of a ZIP code that loses its zero if it's read as a number. The kind is about what the value means, not only what it looks like. The next module comes back to this.

Why one kind per field

A chart reads a field as a whole. If most of a column is numbers and one cell says "n/a" or "see note", the tool has to decide what the whole field is. Often it reads the field as text, and then nothing in it can be added up. Or it drops the cells that don't fit, without telling you.

So when a field won't behave, when a sum comes out blank or a date axis sorts "April" before "January", look for the cell that's a different kind from the rest. A date typed as text is the most common one: "Jan 2024" sorts alphabetically, not in time.

A worked example

Here are the first rows of a table of patient visits to a clinic:

PatientID VisitNumber VisitDate TempF HeartRate
P0001 1 2024-02-15 97.1 61
P0001 2 2024-03-15 96.8 94
P0001 3 2024-06-26 99.7 73

Read kind by kind:

  • PatientID is text. It starts with a letter, and you'd never add two patients together.
  • VisitNumber is a whole number, but it's an order, not an amount: visit 3 comes after visit 2. Adding visit numbers up means nothing.
  • VisitDate is a date, written year first, which sorts correctly as it is.
  • TempF is a decimal, a measurement in degrees.
  • HeartRate is a whole number, a measurement in beats per minute.

The table has 1,054 rows. Because VisitDate is a real date, a chart can put each patient's visits in time order and space them by the actual gaps between visits, not as evenly spaced steps.

A time series plot of the "Patient Vital Signs" dataset: SpO2Pct on a true time axis, Jan 2024 to Sep 2027.
A time series plot of the "Patient Vital Signs" dataset: SpO2Pct on a true time axis, Jan 2024 to Sep 2027.

How to read this Time series plot Try it in the explorer

Loading the interactive...

Try it

Take a table you use and label each field with its kind: text, whole number, decimal, date, or true or false. Then look for two traps: a number that's really a label (a code, a ZIP, an ID), and a date stored as text. Either one will change which charts the table can make.

The next lesson looks at the whole table again: the same facts can be laid out in two different ways, and charts strongly prefer one of them.