01.2The grain, or the level of detail of your data

Before going further, ask yourself one question about every table. What level of detail does it give? This level of detail is called the grain, or the granularity of the data. You read it in the rows and in the columns.

01.2.1Detail in the rows

Take two tables about the same sales. The first one has one row per sale.

Table Sales
Sale IDDateCustomer IDAmount
V0011/15/2024C001250,000
V0023/8/2024C002150,000
V0035/20/2024C004100,000
V0049/12/2024C005100,000
V00511/25/2024C006150,000
V0061/10/2025C001200,000
V0072/18/2025C003150,000
V0083/27/2025C002150,000
V0095/6/2025C004150,000
V0107/14/2025C005150,000
V0119/30/2025C007100,000
V01212/2/2025C00650,000
Table: Sales (12 rows)

This is a reproduction of the Power BI interface for teaching purposes. It differs from the real interface.

The second one has one row per month, with the month’s total.

Table Sales by Month
MonthAmount
Jan'24250,000
Mar'24150,000
May'24100,000
Sep'24100,000
Nov'24150,000
Jan'25200,000
Feb'25150,000
Mar'25150,000
May'25150,000
Jul'25150,000
Sep'25100,000
Dec'2550,000
Table: Sales by Month (12 rows)

This is a reproduction of the Power BI interface for teaching purposes. It differs from the real interface.

The first one is the most detailed, since each row is a sale. The second one groups the sales of each month, so its grain is coarser.

  • With the first one, you can calculate revenue by month, by customer or by city, and find one specific sale.
  • With the second one, you can only calculate revenue by month. The customer, the city and each individual sale are gone.

You can always group detailed rows, sales into months. You can never do the reverse. A monthly total no longer tells you which sales it is made of.

01.2.2Detail in the columns

Detail also shows in the columns. Here is a customer table with plenty of columns.

Table Customers
CodeNameCountryRegionCityNeighborhoodType
C001OrvaneUnited StatesNew YorkNew YorkSoHoCompany
C002KumoraUnited StatesNew YorkNew YorkChelseaCompany
C003TalvioUnited StatesNew YorkNew YorkHarlemCompany
C004RibeliaUnited StatesIllinoisChicagoLincoln ParkCompany
C005MovaraUnited StatesIllinoisChicagoWicker ParkCompany
C006NorthelCanadaOntarioTorontoDowntownCompany
C007Sam LeeCanadaOntarioTorontoThe AnnexIndividual
Table: Customers (7 rows)

This is a reproduction of the Power BI interface for teaching purposes. It differs from the real interface.

Here is another table, which describes the same customers with only three columns.

Table Contacts
CodeNameCity
C001OrvaneNew York
C002KumoraNew York
C003TalvioNew York
C004RibeliaChicago
C005MovaraChicago
C006NorthelToronto
C007Sam LeeToronto
Table: Contacts (7 rows)

This is a reproduction of the Power BI interface for teaching purposes. It differs from the real interface.

Both tables have the same 7 rows. Customers describes each customer in far more detail than “Contacts.” For identical rows, more columns mean more description, and so a finer grain.

01.2.3Sharper investigations

Detail is what lets you investigate. Say some customers complain about late deliveries. If the table stops at the date of the sale, all you know is that the problem exists.

If it goes down to the date and time of delivery, you can look for what repeats. Do the delays fall on the same day of the week, in the same time slot, in the same city, for the same product? They may also come from a specific team or a specific piece of logistics, like a carrier, a type of vehicle or a warehouse. That is, as long as the table keeps this information. Every extra detail is one more lead. You move from “there is a problem” to “here is where and when it happens.”

Without detail, the question stays unanswered. With it, you spot the causes that keep coming back, and you can fix them.

Watch out!

Detail has a cost. It multiplies the rows, and with them the size of the file and the calculation time. Keep the detail you need to answer your questions, and no more.

Quiz

The questions often rely on the course tables. Keep them in view in their floating window, which you can move and enlarge.

Question 1

The Customers table describes each customer with seven columns. The “Contacts” table describes the same customers with three columns. Which one has the finer grain?

Question 2

All you have is the total for each month. Can you get back to revenue by city?

Question 3

What level of detail should a table keep?

Key takeaways
  • The grain of a table is its level of detail. You read it in the rows, what each one stands for, and in the columns, what each one describes.
  • You can always group detailed rows, but you can never get the detail back from a total.
  • Keep the detail you need for your questions, and no more.