A tool sees digits and assumes a measure. Sometimes that's right. Often it isn't, and the result is a chart that adds up ZIP codes or averages years.

Numbers that aren't amounts

These look like numbers but play another role:

  • Codes and IDs. Store numbers, employee numbers, account numbers. Each one names something. Adding two together means nothing.
  • ZIP and postal codes. They name places. Read as numbers, they also lose their leading zeros: 02134 becomes 2134, which no map can find.
  • Years used as labels. In "revenue by year", the year can be a date (a time axis) or a category (one bar per year). It's never a measure: the total of the years is meaningless.
  • Ratings and levels. A priority of 1 to 3 or a tier of 1 to 5 is an ordered category. Averaging it can be useful, but only if the gaps between levels really are equal.
  • Coordinates. Latitude and longitude are numbers, but together they're a place. Neither one makes sense summed.

The test

Ask: would the total of this field mean anything? If the answer is no, it isn't a measure, whatever it looks like. Then ask whether it repeats (a category), names each row (an identifier), or locates something (a place).

A worked example

Here are the first rows of a table of sales accounts, assigned to reps across regions:

AccountId Account City Region Country Latitude Longitude Tier CurrentRepId
A0001 Fairhaven Energy Corp Monterrey MX-NLE MX 25.71807 -100.40442 B R10
A0002 Riverbend Plastics Inc Boston US-MA US 42.27814 -71.03971 C R07

Only two fields are pure numbers, Latitude and Longitude, and neither is a measure: together they place each account on a map. AccountId and CurrentRepId are identifiers that happen to contain digits. Region holds codes like US-MA, which name a state or province, so it's a place. Tier is an ordered category.

So this table, despite its numbers, has no measure at all. A chart that needs a number to add up can still count accounts (how many per tier, how many per rep), but it can't total anything. That's a useful thing to know before you ask for a chart of "revenue by region".

Compare a table of store results by US state:

State Sum of Revenue Sum of Orders ReturnRate
Alabama 4,050,201 96,362 3.0

Here State is a place, Revenue and Orders are measures, and ReturnRate is a measure too, but a rate: it's a percentage, so it should be averaged, not added up. Adding up the return rates of all 51 rows (the 50 states and the District of Columbia) gives a number with no meaning.

A US choropleth of the "US State Store Metrics" dataset: 51 states shaded by their Sum of Revenue.
A US choropleth of the "US State Store Metrics" dataset: 51 states shaded by their Sum of Revenue.

How to read this USA Choropleth (by state) Try it in the explorer

Fixing it at the source

  • In Power BI, set a code field's Data type to Text, and set Summarization to "Don't summarize" on any number that isn't a measure.
  • Set a ZIP or postal code's Data category to Postal code, and latitude and longitude to Latitude and Longitude.
  • In Excel, format a code column as Text before you type or paste, so the leading zeros survive.

Try it

Find every numeric field in a table you use and apply the test: would its total mean anything? Mark each one that fails as an identifier, a category or a place. Then check that your tool isn't summing it.

The next lesson turns from fields to rows: what one row stands for, and how to find out.