Facts and Dimensions Quick Reference

A reference for enterprise data modeling, architecture and industry exchange.

BeginnerIntermediateExpert · 4 min read · Last updated:

In brief

Declare the fact grain in one sentence before choosing columns. Transaction facts record events at a point in a process. Periodic snapshots capture state at regular intervals. Accumulating snapshots track a process across milestones. These patterns answer different questions and may coexist.

Facts

Declare the fact grain in one sentence before choosing columns. Transaction facts record events at a point in a process. Periodic snapshots capture state at regular intervals. Accumulating snapshots track a process across milestones. These patterns answer different questions and may coexist.

Measures

Additive measures can be summed across all relevant dimensions. Semi-additive measures can be aggregated across some dimensions but not across time, such as many balances. Non-additive measures, including ratios, often require recomputation from components. Document unit, null behavior and rounding.

Dimensions

Dimensions provide descriptive context such as date, customer, product or location. A role-playing dimension can serve different purposes in the same model, such as order date and ship date. A conformed dimension shares a definition across processes when meaning and attributes genuinely align.

Review joins and history

Check cardinality and join paths to avoid fanout. Decide whether changes overwrite, preserve history or require another strategy. Identify surrogate and business keys and define how unknown or missing members are represented. Validate aggregates against detailed records.

Industry meaningConcepts and process
Reference modelVocabulary and contract
Local systemsMapped and validated
Standards guide exchange; local mappings still need ownership and validation.

Apply with care

Confirm definitions, current versions, usage rights and implementation expectations with authoritative sources and accountable domain owners. Record local mappings, assumptions and changes so consumers can understand the scope of the model.

Patterns and reference depth Definitions, trade-offs and checks

Grain and keys

State what one fact row represents before selecting keys or measures. Check that each dimension key resolves to the intended member and that effective dates do not produce multiple matches. If one fact relates to many dimension members, define a bridge or allocation rule and test measure behavior.

Measures

Additive measures can be summed across compatible dimensions. Semi-additive measures, such as balances, need special treatment across time. Non-additive measures, such as rates, should be recomputed from components. Document units, currency, sign conventions and filters.

Dimension history

Choose current-state or historical behavior based on the question. Type 1-style overwrite may correct or restate history; Type 2-style versioning preserves values valid at a point in time; limited prior-value storage supports narrow comparisons. Define effective interval boundaries and late-arriving behavior.

Validation

  • Does every fact have a clear grain?
  • Do joins preserve fact counts and totals?
  • Are time roles and hierarchies unambiguous?
  • Are snapshots treated correctly across time?
  • Can users reconcile sample results?

Worked example: orders and order lines

Suppose an order header contains customer, order date, currency, and status, while each line contains a product, quantity, unit price, and line-level discount. A header-level fact has one row per order and supports order counts and header totals. A line-level fact has one row per order line and supports product mix and quantity analysis. Combining the two grains carelessly repeats header amounts once per line. Either compute header measures at their native grain before joining or build a deliberately defined order-level result.

Classify measures before aggregating

Quantities and extended amounts are often additive across appropriate dimensions when currency and unit conventions match. Account balance and inventory-on-hand are typically semi-additive: they can be summed across entities at one time, but summing daily snapshots across time produces a misleading result. Ratios, percentages, and averages should usually be recomputed from their numerator and denominator at the requested level rather than averaged from already aggregated values. Store units, currency, and calculation rules alongside measure definitions.

Review dimension joins and history

Dimensions provide descriptive context, but a join can multiply measures if the relationship is many-to-many or if an effective-dated dimension has overlapping rows. Test key uniqueness at the intended grain, unmatched facts, and row counts before and after joins. For historical reporting, decide whether a fact should use the dimension value that was true at event time or the current corrected description. State the policy, preserve source keys, and provide a reconciliation path when dimensions change.

Quick review questions for a star schema

Can the fact grain be written as one sentence? Does each measure make sense at that grain? Are dimensions unique at the join key and historically accurate for the question? Do snapshots represent a point or interval? Are ratio components available so consumers can aggregate safely?

Test joins for row multiplication and inspect unmatched facts. Reconcile representative periods to source controls. Document dimension history and late-arriving behavior where they affect reports.

Troubleshoot common fact and dimension issues

If totals double after a join, verify grain and cardinality. If history is wrong, inspect dimension effective dates and fact key assignment. If a ratio changes by grouping, recompute from numerator and denominator. If a snapshot sums incorrectly across time, classify it as semi-additive.

Use small examples and reconcile to source controls before changing the model.