Sunday, February 4, 2018

Type 2 Slowly Changing Dimension

In Type 2 Slowly Changing Dimension, a new record is added to the table to represent the new information. Therefore, both the original and the new record will be present. The new record gets its own primary key.
In our example, recall we originally have the following table:
Customer Key Name State
1001 Guru Jharkhand

After Guru moved from Illinois to California, we add the new information as a new row into the table:
Customer Key Name StateActive
1001 Guru Jharkhand0
1005 Guru Karnataka1

Advantages:
- This allows us to accurately keep all historical information.
Disadvantages:
- The table size may increase due to historical data.
When to use Type 2:
Type 2 slowly changing dimension should be used when it is necessary for the data warehouse to track historical changes.

No comments:

Post a Comment

PowerBI monthly report refresh

How to setup monthly refresh for PowerBI ? PowerBI generally allows daily or weekly refreshes with options of selecting multiple time values...