Start studying
Module 1 · Data Basics Module contents
Module 1  ·  Card 13 / 14intermediate

Data Granularity

Data granularity refers to the level of detail and specificity represented by a single row in a dataset.

High granularity means fine detail, such as recording every individual item scanned at a supermarket till.

Low granularity means aggregated summary, such as recording total store revenue once per month.

For example, knowing annual sales does not tell you which hour of the day was busiest.

You can always aggregate fine data into summaries, but you can never unpack summary data into lost details.

Learn in depth ↓
Module 01 · Data Basics · 14 concepts
In depth  /  15 lines

Data Granularity, in more detail

Granularity defines the atomic unit of analysis for any table or report.

Before writing any query, you must know what real-world event one single row corresponds to.

High granularity data is often described as fine-grained, while aggregated data is coarse-grained.

In web analytics, fine-grained data logs every single button click with a precise millisecond timestamp.

Coarse-grained data summarises those clicks into total daily page visits per country.

Fine detail provides maximal flexibility because you can calculate any higher level summary you need.

You can group hourly readings into daily, weekly, or annual aggregates using simple sums and averages.

However, high granularity comes with high storage costs and slower query execution across billions of rows.

Coarse data is compact and fast to query, but permanently discards individual variation and outliers.

If you only store monthly totals, you can never discover whether sales spiked on rainy weekends.

A frequent modelling blunder is joining two tables that operate at different levels of granularity.

Joining a daily customer table to an item-level order table duplicates customer rows and distorts totals.

Always document the grain of a table in its metadata so analysts understand its scope.

When designing pipelines, preserve fine raw data in cheap storage before aggregating for dashboards.

Getting the granularity right ensures that your data can answer both broad trends and specific investigations.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
An analyst examines a table of monthly sales totals per store. Which question can this table not answer?
Data Basics

14 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close