The first module asked you to say a table's sentence: "one row per ___." The word in the blank is the table's grain. It's the most useful single fact about a table, and the one most often left unsaid.
Why grain matters
Grain decides what a number in the table means. "Revenue 1,415,654" means one thing if a row is a whole year and another if it's one product line in one year. It also decides what a chart has to do: if the grain is finer than the chart, the chart must combine rows, and you need to know how.
Two tables about the same business can have different grains:
- One row per order: fine-grained, many rows, every order visible.
- One row per store: coarse-grained, one row per store, each holding a total.
Neither is better. But you can always go from orders to stores by adding up. You can't go back from stores to orders, because the totals have already thrown away the detail.
How to find the grain
Look for the field, or the smallest set of fields, whose values are different on every row:
- Start with a likely identifier. An order ID, a player ID, a ticket ID. If it's different on every row, it alone is the grain: one row per order.
- If there isn't one, combine fields. Try a date and a category together, or a year and a division. If the combination never repeats, that's the grain.
- Check with the row count. If a table has 12 months and 10 categories, and the grain is month and category, it should have 120 rows. If it has more, something repeats. If it has fewer, some combinations are missing.
A worked example
Here are the first rows of a table of a company's revenue:
| Year | Division | Category | Revenue |
|---|---|---|---|
| 2014 | Digital | Streaming | 1,415,654 |
| 2014 | Digital | Mobile Apps | 1,222,332 |
No single field is different on every row: years repeat, divisions repeat, categories repeat. Together, Year, Division and Category don't repeat, so the grain is one row per category, per division, per year. Category sits inside Division, so each category belongs to one division, which makes this a small hierarchy as well.
The check: 12 years times 16 categories should give 192, and the table has 192 rows.
Loading the interactive...
A treemap draws that hierarchy: one tile per category, sized by its revenue and grouped by division.

Now take a table of orders with just two fields, the store number and the order value. The store number repeats, so it isn't the grain on its own, and the value isn't an identifier. There's no field that makes each row unique. The grain is still clear from what the table is, one row per order, but no field records it. That's common in raw exports, and it's worth adding an order ID if you can, so any row can be traced back.

Grain in Power BI and Excel
When you drag fields into a visual, you set the visual's grain: one bar per store, one point per month. The visual adds up the rows beneath each one. If the table's grain is finer, every bar is a total. If it's the same, every bar is one row. Knowing which tells you whether a bar is a single order or the sum of hundreds.
Try it
Write the grain sentence for a table you use, then check it: count the distinct combinations of the fields you named and compare them with the row count. If they differ, you've found duplicates or gaps worth understanding before you chart anything.
The next lesson shows what happens when a chart adds rows up, and what the totals leave out.