Some tables have no measure at all: a list of accounts, a log of complaints, a register of members. That doesn't stop a chart. Every table has rows, and rows can be counted.

Count the rows

A table of 1,500 sales accounts has place names, a tier and a rep for each account, and not one number worth adding up. (Its latitude and longitude are a place, and its IDs are labels.) But it can still answer "how many?":

  • How many accounts in each country? The United States has 1,211, Canada 117 and Mexico 109.
  • How many in each tier? 602 are tier C and 116 are tier A.

Group by a field, count the rows in each group, and the count is the measure. Read this table in the probe to see its shape and the charts that fit it.

Loading the interactive...

Count the rows, or count the different values

Two counts sound alike and answer different questions:

  • Count says how many rows there are: how many accounts each country has.
  • Distinct count says how many different values there are: how many different reps work in each country.

The same table has 10 reps. Count the different reps in each country and add the countries up, and you get 38, because most reps work in more than one country. A distinct count is non-additive: it has to be counted again at each level, never added up from the level below.

The two counts also check each other. A log of 2,800 city complaints should have 2,800 different complaint IDs. It has 2,799: one ID is on two different complaints, a streetlight in one neighborhood and a parked car in another. When the count of rows and the distinct count of an ID disagree, either the grain isn't what you thought or the IDs need a look.

Make a number into groups first

A number with many values, like the days a complaint took to resolve, can be counted too, once it's grouped. Cut its range into bins (0 to 2 days, 3 to 7, 8 to 30, more than 30) and count the rows in each. That's what a histogram does with a continuous number, and you can choose the bins yourself when they mean something: same day, same week, same month.

Make a date into periods first

A date is rarely counted as it is: each day gets too few rows. Take a part of it instead, and count by that:

  • The month or the year: how many orders each month.
  • The weekday: how many complaints come in on a Monday.
  • The hour: when in the day the calls arrive.

The same move works with a measure, too. Here's a table of daily new cases by state, with each day put under its weekday. Nothing new was measured: the weekday was taken from the date.

A cycle plot of the "COVID Cases & Hospitalizations by State" dataset: Sum of NewCases by the repeating part of ReportDate, Jun 2024 to May 2025.
A cycle plot of the "COVID Cases & Hospitalizations by State" dataset: Sum of NewCases by the repeating part of ReportDate, Jun 2024 to May 2025.

How to read this Cycle plot Try it in the explorer

Every weekday looks the same, which is a finding of its own: in this table, cases don't depend on the day of the week.

In your tool

  • In Power BI, drop any field into Values and choose Count or Count (Distinct). For a period, use the date's hierarchy (Year, Quarter, Month, Day), or add a column for the weekday or the hour.
  • In Excel, a PivotTable counts any field it's given. Group a date field by months or years, and a number field by a range, from the field's Group command.

Try it

Find a table you use that has no measure. Write down three questions it can still answer: one by counting rows, one by counting different values, and one by counting per month, weekday or bin. Then check that the row count and the distinct count of its ID agree.