Concept · The Teamlane decision: deep
Slowly changing dimension (SCD)
Also: SCD, as was versus as is, type 2 dimension
Dimension attributes change from time to time (a customer moves, a product is repriced), and analysis needs to see facts both as they were and as they are now. Sherman catalogues the techniques: type 1 overwrites the old value, type 2 adds a new row so history is kept, type 3 keeps the old value in a separate column, and so on; choose per attribute, by business need. At Teamlane, an account that upgrades from Starter to Team must stay a Starter account in its earlier months, or churn by plan is rewritten after the fact.
Related
- applies to Dimension table
Sources
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 245
- Rick Sherman (2014), Business Intelligence Guidebook: From Data Integration to Analytics, p. 246