Skip to content
  • There are no suggestions because the search field is empty.

Historization Type (Term and Relationship)

Applies to
Platform: Microsoft SQL Server · Snowflake · Databricks · Databricks dbt · Fabric Lakehouse · Fabric Warehouse · Oracle
Architecture: Data Store · Dimensional · Data Mart

Historization Type decides what a changed term value does to the stored versions: a new version, an overwrite or no change. Set it on every descriptive term of a Store Entity, Entity or Mart Dimension.

Data Vault and Stage objects have no Historization Type. Satellites keep a new version for every change of BG_RowHash.

Where to set it

Set the property when you edit a term. On an Entity, a relationship has a Historization Type too.

Values and defaults

  • SCD2: a changed value closes the current version and starts a new one.
  • SCD1: a changed value overwrites the term in every version of the business key. It starts no version.
  • SCD0: the value of the first version is kept, also when it is NULL and a later load delivers a value.

When any SCD2 term changes, the new version holds the current values of all SCD1 and SCD2 terms; SCD0 terms keep their first value. Change detection and historization explains how the three types work together.

A new term gets this Historization Type:

Model object typeDefault
Store EntitySCD2
EntitySCD2
Mart DimensionSCD1

Only business keys and Default Terms stay empty. Any other term without SCD0, SCD1 or SCD2 fails validation with error ID-10008: Model object '<model object name>' of type '<type>' has unsupported historization type for terms defined. Supported historization types are: SCD0, SCD1, SCD2. On an Entity, a relationship without one fails with error ID-10009.

Effect on generated output

An object with at least one SCD2 term or relationship is historized. It gets BG_ValidFromTimestamp and BG_ValidToTimestamp. A closed version ends at the BG_ValidFromTimestamp of the next version. The current version ends at the End of Universe.

Example

A Store Entity on Microsoft SQL Server has the business key CUSTOMER_ID, the SCD1 term CUSTOMER, the SCD0 term CUSTOMER_TYPE and the SCD2 term ADDRESS_LINE1. The first load delivers two customers:

CUSTOMER_ID CUSTOMER   CUSTOMER_TYPE ADDRESS_LINE1
1           Alpine     Retail        Main St 1
2           Baltic     Retail        Harbour Rd 7

The second load, on 2026-11-02, changes all three terms of customer 1 and only CUSTOMER of customer 2:

CUSTOMER_ID CUSTOMER   CUSTOMER_TYPE ADDRESS_LINE1
1           Alpine AG  Wholesale     Lake Rd 5
2           Baltic Ltd Retail        Harbour Rd 7

The result view then shows these rows. ValidFrom and ValidTo are BG_ValidFromTimestamp and BG_ValidToTimestamp, shortened to the date:

CUSTOMER_ID CUSTOMER   CUSTOMER_TYPE ADDRESS_LINE1 ValidFrom  ValidTo
1           Alpine AG  Retail        Main St 1     1900-01-01 2026-11-02
1           Alpine AG  Retail        Lake Rd 5     2026-11-02 9999-12-31
2           Baltic Ltd Retail        Harbour Rd 7  1900-01-01 9999-12-31

The SCD2 change starts a second version of customer 1. Both versions show the new SCD1 name, and the SCD0 term keeps Retail. Customer 2 changed only an SCD1 term, so its one version is overwritten. Each first version starts at the Begin of Universe, here 1900-01-01.

Related articles