Star schemas: facts, dimensions and grain
Shape warehouse tables as a star: one fact table of measured events, dimension tables that describe them, and a grain that says what one row means.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: a receipt with stamps. A shop receipt records one purchase. The numbers on it are the amount paid and the quantity. Stamps around it say which shop, which product, and which date. You can count receipts by shop, by product, or by day, because every receipt carries those stamps.
What it is: A is the centre table of a star schema. In our transaction example it holds one row per measured event, plus the numbers to count or add. Other fact tables hold periodic snapshots, or record that an event occurred without a numeric measure. A holds the descriptions, such as who, what, and when, used to slice those numbers. Grain is the exact thing one fact row stands for. These tables live in the data warehouse, the separate store of history, not in the app that records today's clicks. The nearest neighbour is a tidy app table, where each fact is stored once for updates. A star repeats descriptive words on purpose so reports stay simple to read.
Why it matters: If Sam mixes two row meanings in one fact table, totals can be counted more than once. Nina would fund a plan from a number that counts each task twice. Declaring the grain in one sentence stops that before the report is built.
A receipt is one slip of paper. A fact table holds a great many of them, so one wrong choice is repeated on every row.
PLAIN WORDS · 2 in this section
- snapshots
- records of how things stood at one moment
- numeric
- made only of numbers
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the work.
THE REAL JOB The picture helps a newcomer remember that numbers sit on the receipt and descriptions sit in the stamps around it.
- Pick the process
- Declare the grain
- Choose the dimensions
- Choose the facts
- Check the totals
HOW THE PICTURE MAPS
| In the picture | In the work |
|---|---|
| One shop receipt | One row of a fact table |
| The amount and quantity on the receipt | The measures |
| The stamps for shop, product and date | Dimension tables |
| The rule that each receipt is one purchase | The grain |
| A receipt that also holds the day's total | Mixed grains |
WHERE THIS PICTURE STOPS
- A receipt is one paper slip, but a fact table holds millions of rows.
- A stamp is fixed on the paper. A dimension can change over time, so history needs a plan.
- A shopper never counts a day's total as a purchase. A query adds up every row it is given.
HOOK
One receipt, one grain, stamps around it.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Finish "one row is one ..." first. Then ask who, what and when for the stamps, and how many or how much for the numbers.
| In the trick | What it stands for |
|---|---|
| One row is one what? | The grain is the exact thing one row stands for |
| Who, what, when? | Dimension tables describe who, what and when |
| How many, how much? | The fact table holds numbers to be counted or added |
TELL A FRIEND
A star schema has a central of measured events and dimension tables that describe them. The grain says what one row means, and grains must never be mixed.
OFTEN MIXED UP WITH Data warehouse and ETL basics. That topic explains why a warehouse exists and how data gets there. This one shapes the tables inside it.
Sources & standards — 3 sources
- Market practice
Additive, Semi-Additive, and Non-Additive Facts ↗ — Kimball Group · Complete short technique: additive, semi-additive and non-additive measures; aggregate components before ratio; read 7 November 2026.
Selected primary-source sections read for the BA Analytics audit. This record does not certify unrelated chapters or product features. No reuse permission for publisher images is inferred.
- Market practice
Periodic Snapshot Fact Tables ↗ — Kimball Group · Complete short technique: period grain and zero/null periods; read 7 November 2026.
Selected primary-source sections read for the BA Analytics audit. This record does not certify unrelated chapters or product features. No reuse permission for publisher images is inferred.
- Implementation-specific
Understand star schema and the importance for Power BI (Microsoft Learn) ↗ — Microsoft · Fact-table grain, measures and complete Type 2/role-playing-dimension sections; version surrogate key and valid-time lookup, selected sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
PRACTISE AND KEEP
Sources for this topic — 10 sources
- Market practice
Four-step dimensional design process (Kimball Group) ↗ — Kimball Group · Four-step dimensional design process (Kimball Group): pick the business process, declare the grain, choose the dimensions, choose the facts (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Dimensional Modeling Techniques (Kimball Group) ↗ — Kimball Group · Dimensional Modeling Techniques (Kimball Group): grain, dimensions, facts and star schemas are core techniques of dimensional modelling (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Fact table (Wikipedia) ↗ — Wikipedia · Fact table (Wikipedia): the grain of a fact table is what one row stands for, and different grains must not be mixed (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Kimball University: Keep to the Grain in Dimensional Modeling (InformationWeek) ↗ — InformationWeek · Kimball University: Keep to the Grain in Dimensional Modeling (InformationWeek): losing the grain leads to mixed granularity in one fact table (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Understand star schema and the importance for Power BI (Microsoft Learn) ↗ — Microsoft · Understand star schema and the importance for Power BI (Microsoft Learn): a star schema design suits analytic query workloads; snowflake dimensions are a related idea (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Simplified educational illustration
Payments Signal editorial teaching models — Payments Signal
What this simplifies: Daily List, its tables and its numbers are invented. Every count and total quoted was run on PostgreSQL 16 with a small fact table of 10 task rows and three dimension tables. Real warehouses hold billions of rows and use more kinds of fact table, such as snapshots, which this lesson leaves out. Kimball Group writing is one school of design, widely used but not the only one. The sources were read as search excerpts only.
Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.
- Market practice
Slowly changing dimensions types 1 to 6 (datadriven.io) ↗ — datadriven.io · Kimball Group techniques page (already in registry) defines slowly changing dimension types. Secondary excerpt: datadriven.io SCD page (search excerpt, page not opened).
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Additive, Semi-Additive, and Non-Additive Facts ↗ — Kimball Group · Complete short technique: additive, semi-additive and non-additive measures; aggregate components before ratio; read 7 November 2026.
Selected primary-source sections read for the BA Analytics audit. This record does not certify unrelated chapters or product features. No reuse permission for publisher images is inferred.
- Market practice
Periodic Snapshot Fact Tables ↗ — Kimball Group · Complete short technique: period grain and zero/null periods; read 7 November 2026.
Selected primary-source sections read for the BA Analytics audit. This record does not certify unrelated chapters or product features. No reuse permission for publisher images is inferred.
- Implementation-specific
Understand star schema and the importance for Power BI (Microsoft Learn) ↗ — Microsoft · Fact-table grain, measures and complete Type 2/role-playing-dimension sections; version surrogate key and valid-time lookup, selected sections read 7 November 2026.
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.