liveBook · Manning

Fact table

As explained in Effective Data Analysis

A fact table is a tabular structure that records measurable events or processes, typically with numeric measures and references to dimensions.

A fact table records numeric information about business processes or events that matter for analysis, such as sales transactions, clicks, page views, or customer activities. It forms the center of a star schema and connects to dimension tables describing related entities and attributes. section 11.4.2 section 11.5

Designing a fact table requires identifying an important organizational process, clarifying what each fact means to stakeholders, and choosing dimensions that make analysis easier. Denormalization combines relevant sources into readable tables, reducing joins and calculations for common queries. section 11.4.2

Use these questions when shaping a fact table:

  • Which normalized tables represent actions or events rather than business entities? section 11.4.3
  • Which measures and foreign keys describe each event, and how will they connect to dimension tables? section 11.4.2 section 11.4.3
  • Do the proposed facts and dimensions match stakeholder needs, organizational priorities, and expected analytical queries? section 11.4.2 section 11.4.3
Figure 11.21 Star schemas have fact tables at the center connected to dimensions with related attributes.
figure

Use the star-schema diagram to see fact tables at the center with connected dimensions containing related attributes. section 11.4.2

How Effective Data Analysis covers it

How deep it goes
Explains definitions, modeling criteria, relationships, and design questions, but stops short of a complete implementation.
Examples
Uses sales transactions, page views, clicks, customer activities, and normalized-schema redesign exercises as examples.
What it assumes
Assumes familiarity with normalized schemas, primary keys, foreign keys, and analytical business questions.
What you can do after
Practice/perform by identifying event tables, proposing fact and dimension tables, mapping their keys, and drawing a star schema.
How it connects
Connects fact tables to star schemas, dimension tables, denormalization, normalization, and analytics engineering.

Also explained in

Compare how 2 books explain fact table →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Data Analysis. The section links point to the parts of the book it draws on.