Slowly Changing Dimensions: Type 1, 2 and 3

Choose history behavior from the question people need to answer.

BeginnerIntermediateExpert · 4 min read · Last updated:

The choice

Slowly changing dimension (SCD) strategies define how a model handles changes to descriptive attributes. Type 1 overwrites, Type 2 keeps versioned rows, and Type 3 preserves a limited previous value in additional columns.

Compare the strategies

ApproachWhat changesBest fitTrade-off
Type 1Overwrite the current attributeCorrection or current-state reportingPrior value is lost in that dimension
Type 2Add a new row version with effective datesAnalyze facts using historical contextRequires version keys and interval rules
Type 3Keep current and a selected prior valueSmall, known comparison such as prior regionOnly limited history is retained

Choose by business question

Ask whether an old sale should remain associated with the category that was true when it occurred, or be restated under today's category. Ask whether an attribute correction should rewrite history or preserve what the organization previously knew. These questions can have different answers for different attributes.

Type 2 details to define

  • Effective start and end timestamps or dates.
  • Which version is current and how open-ended intervals are represented.
  • How late facts find the correct dimension version.
  • How overlapping, missing or corrected intervals are detected.
  • Which attributes trigger a new version.
Do not default every change to Type 2

Versioning every descriptive change increases volume and complexity. Use it where historical context matters and define the rule by attribute.

Implementation depth Examples, failure cases and review points

Choose history by the question users ask

Dimension history is not a purely technical choice. Ask whether consumers need current descriptions, the descriptions that were valid when an event happened, or a limited prior value for comparison. A product moving from one category to another illustrates the difference: current-state reporting may restate all past sales under the new category, while historical reporting preserves the category used at sale time.

PatternBehaviorUse whenCost or risk
Type 1Overwrite the previous attributeCorrection or current description is what mattersPast reports change and prior value is lost unless separately retained
Type 2Create a new version with effective dates and a new surrogate keyPast facts must retain the version valid at the event timeMore rows, interval logic and late-arriving handling
Type 3Keep selected current and prior values in columnsA narrow comparison such as current versus previous assignment is neededLimited history depth and schema changes as needs grow

Type 2 details that need explicit rules

A Type 2 row commonly has a surrogate version key, a durable business key, effective start and end, and a current indicator. Define whether intervals are half-open, such as start-inclusive and end-exclusive, to avoid an event matching two versions at a boundary. Enforce one current row per durable key when that is the intended rule.

When a new change arrives, close the prior version and insert a new one. A correction may require revising an earlier interval rather than simply adding a latest row. If a fact arrives late, select the version valid at its event time, or apply a documented unknown/deferred resolution process. Preserve source effective time separately from warehouse ingestion time when they answer different questions.

Separate corrections from genuine change

If an old address was entered incorrectly, replacing it may be a data correction rather than a business change. If a customer actually moved, it is a genuine historical transition. The right treatment depends on whether reports need to reproduce what the organization believed at the time or the corrected truth now. Record both valid time and knowledge or transaction time when both perspectives matter.

Document downstream restatement behavior. A correction can change a historic dimension value and therefore prior reports. Notify consumers if the product supports restatement. Keep audit evidence when required by approved policy, and do not invent a retention period based solely on a modeling convention.

Test temporal logic

  • Two versions for one durable key do not overlap unintentionally.
  • There are no unexplained gaps where continuous validity is required.
  • Boundary-date facts match exactly one valid version.
  • Late-arriving events resolve to the intended historical value.
  • Corrections produce the documented restatement behavior.
  • Current indicators agree with the effective-date interval.

Choose the simplest pattern that supports real questions, but document what history will be lost. If the requirement is not known, ask users to compare reports before and after a change and state which behavior they expect.

Related reading: Dimension Tables and Conformed Dimensions, Fact Table Grain and Measurement Types and Temporal and Bitemporal Data Modeling.

Reconcile slowly changing dimensions

Test a late dimension update, duplicate source key, changed natural key, inferred member, and interval boundary. Confirm that facts resolve to the intended surrogate key and that historical reports follow the declared policy. Monitor overlapping intervals and unresolved lookups.

Document whether type changes are applied per attribute or per dimension. Reconcile fact counts and selected measures before and after backfills. Provide consumers with guidance on current versus historical attributes.