Dimensional Modeling
Design star schemas with a declared grain, well-formed fact and dimension tables, and slowly changing dimensions that preserve history.
4 objectives 6 steps about 140 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Declare the grain of a business process and design transaction, periodic-snapshot or accumulating-snapshot fact tables with correctly classified additive, semi-additive and non-additive measures.
- Design dimension tables with surrogate keys and hierarchies, and choose between star, snowflake and one-big-table layouts for a use case.
- Implement Type 1 and Type 2 slowly changing dimensions and join facts to the dimension version valid at event time.
- Build a bus matrix that maps business processes to conformed dimensions shared across subject areas.
Lesson plan
6 steps, about 140 min · 5 of 5 lessons available so far
- Why Analytics Needs a Different Shape of Data Concept · 15 min
- Grain First: Designing Fact Tables Concept · 25 min
- Dimensions, Surrogate Keys and Conformance Concept · 20 min
- Worked Example: A Star Schema for Online Retail Worked example · 30 min
- Lab: Type 2 History and Point-in-Time Joins Lab · 30 min
- Check: Model a New Business Process Knowledge check · 8 questions
Practise it
Design a star schema for a subscription business (sign-ups, payments, plan changes): document the grain of each fact table, draw the bus matrix, implement the plan dimension as SCD Type 2 in SQL, and write a revenue query that reports by the plan that was valid at payment time.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.