Dimensional modeling

Also known as: Kimball method

On this page 7

Dimensional modeling is a data modeling technique that structures analytical data around business processes, storing numeric measurements in fact tables and descriptive context in dimension tables. Popularized by Ralph Kimball and often called the Kimball method, it is the dominant design approach for data warehouses, data marts and business intelligence layers in Databases built for analysis rather than transaction processing.

Where normalized models aim to eliminate redundancy for safe updates, dimensional models deliberately accept some redundancy to make queries simple for analysts and fast for engines. The result is usually a star schema in which one central fact table joins directly to a ring of dimension tables describing who, what, where and when.

How dimensional modeling structures data

A dimensional model separates measurements from context. Each fact table records events of one business process, such as sales lines, shipments or website sessions, with additive numeric measures like quantity, revenue or duration. Each row carries foreign keys to dimension tables that describe the event: the date, the product, the customer, the store or the promotion.

Dimension tables are wide and denormalized. A product dimension typically holds the product name, brand, category and department in one row, so a report can group by any of those attributes with a single join. Dimensions use surrogate keys, meaningless integers assigned by the warehouse, rather than the natural keys from source systems, which decouples history tracking from operational identifiers.

The table below lists the core building blocks of a dimensional model.

ComponentRoleTypical content
Fact tableStores measurements of a processKeys plus quantity, amount, duration
Dimension tableDescribes the context of factsNames, categories, hierarchies, flags
GrainDefines what one fact row meansOne order line per day per store
Surrogate keyStable warehouse identifierInteger key generated during loading
Conformed dimensionShared dimension across processesOne date or customer dimension for all marts
Bus matrixPlan of processes and shared dimensionsGrid of facts against conformed dimensions
Core components of a dimensional model

The four-step design process

Kimball’s method follows a four-step design process that keeps the model anchored to business questions rather than to source system structures. The order matters, because each step depends on decisions made in the previous one, and the grain declaration is the step most often rushed with expensive consequences.

  1. Select the business process: choose one measurable activity, such as order fulfillment or claims handling.
  2. Declare the grain: state exactly what a single fact row represents, at the most atomic level available.
  3. Identify the dimensions: list every descriptive context that is true at that grain.
  4. Identify the facts: choose the numeric measures that are consistent with the declared grain.

Designers then build an enterprise bus matrix that maps every business process to the conformed dimensions it uses. Conformed dimensions are what allow a revenue figure from the sales mart and a cost figure from the procurement mart to be compared on the same rows of a report.

Types of fact tables and dimension techniques

Fact tables come in three classic types, chosen according to how the business process generates measurements. Choosing the wrong type usually produces double counting or missing balances, so the type follows directly from the declared grain.

Fact table typeGrainExampleMeasure behavior
TransactionOne row per eventEach sales lineFully additive
Periodic snapshotOne row per period per entityAccount balance at month endSemi-additive across time
Accumulating snapshotOne row per process instanceOrder from placement to deliveryUpdated as milestones occur
Factless factOne row per event without measuresStudent attendance recordCounted, not summed
Fact table types

Dimensions also need techniques for changing attributes. The family of slowly changing dimension types defines whether an attribute change overwrites the old value, adds a new versioned row or keeps the prior value in an extra column. Other common patterns include junk dimensions for low-cardinality flags, role-playing dimensions such as one date dimension used as order date and ship date, and degenerate dimensions such as an invoice number stored directly in the fact table.

Dimensional modeling compared with other approaches

Dimensional modeling is best understood against the alternatives used for warehouses. Normalized models up to third normal form serve operational systems and some integration layers, while Data Vault modeling targets auditable, source-aligned history. Many modern architectures combine them, loading raw data into a vault or normalized layer and publishing dimensional marts for consumption.

ApproachPrimary goalQuery complexityBest suited for
Dimensional modelingFast, understandable analysisLow, few joinsReporting and self-service BI
Third normal formIntegrity and no redundancyHigh, many joinsTransactional systems
Data Vault modelingAuditability and agilityHigh, hubs and linksRaw integration layer
One big tableSimplest possible accessVery lowNarrow, single-purpose datasets
Comparison of data modeling approaches

A star schema is the physical form of a dimensional model with fully denormalized dimensions. A snowflake schema normalizes dimensions into sub-tables, saving some storage but adding joins; most practitioners prefer stars because columnar engines compress repeated values efficiently and join cost matters more than storage.

Common mistakes in dimensional design

Most failures in dimensional modeling come from unclear grain or from copying source system structures into the warehouse. The table below lists frequent symptoms, their causes and the usual fixes.

SymptomLikely causeFix
Inflated totalsMixed grain in one fact tableSplit facts by grain
Reports disagree across martsNon-conformed dimensionsAdopt shared conformed dimensions
History lost after updatesOverwriting changing attributesApply suitable slowly changing type
Slow queries with many joinsOver-snowflaked dimensionsFlatten into star dimensions
Cannot answer detail questionsPre-aggregated grainStore the atomic grain
Typical design problems and remedies

A further mistake is treating the model as purely technical. Dimension attributes should use business vocabulary that analysts recognize, and decode cryptic source codes into readable labels, because usability is the main purpose of the technique.

In plain words

Dimensional modeling arranges business data the way people ask questions about it. Numbers go in one place, such as how many items were sold and for how much. Descriptions go in separate lists, such as which product, which store and which day.

Think of a receipt pinned to a board, with strings leading to cards describing the shop, the customer and the date. Anyone can follow a string to answer a question. The key idea is simplicity for the people asking questions, even if some details are repeated.

A real-world example

A regional grocery chain with 120 stores wants weekly reports on sales by product category, store region and promotion. Its point-of-sale system stores transactions across more than 40 normalized tables, and analysts spend hours writing joins that frequently produce inconsistent totals.

The data team builds a dimensional model. They choose retail sales as the business process and declare the grain as one row per product per receipt line. The fact table holds quantity, sales amount and discount amount, linked to date, product, store, customer and promotion dimensions. The product dimension tracks category changes as new versioned rows, so historical reports keep their original categories.

After launch, the most common reports require only four or five joins instead of fifteen, typical query time drops from several minutes to a few seconds, and finance and marketing finally see matching revenue figures because both use the same conformed date and store dimensions.