Unit 4. -- Approaches to Working with Dimensions

 

Slowly Changing Dimensions

TYPE ONE: Overwrite the old value in the dimension record.

TYPE TWO: Add an additional dimension record using a new surrogate key value.

TYPE THREE: Add an "old" field within the original dimension to record the immediate previous attribute value


Rapidly Changing Small Dimensions

 


Large Dimensions


Degenerate Dimensions


Junk Dimensions


Foreign Keys, Primary Keys, and Surrogate Keys


Additivity of Measures

1. Fully-additive:

2. Semi-additive:

. All balances can be added over all accounts for each branch.

. All balances can be added for all accounts for each customer.

. Balances cannot be added over time; we have to divide the sum by #days.

3. Non-additive:

(Keep Margin_dollars and Sales_Dollars, instead of Margin_rate)