Data Modeling Basics: Fact Tables, Dimensions, Keys & Star Schemas
Build a small star schema for a fictional retailer by hand in 20 hands-on labs: declare the grain, map surrogate keys, join facts to dimensions, build a date dimension, keep history with SCD type 2 and change detection, model periodic and accumulating snapshots, factless, junk and role-playing dimensions, drill across conformed dimensions, avoid double counting and finish with a QA-checked dashboard - every cell checked instantly.
- One-time payment
- Instant access right after payment
- Secure checkout with Stripe
About this course
This course teaches dimensional modeling by building it yourself, cell by cell, in 20 interactive labs. You work with Larkfield Home, a fictional homeware retailer. First you declare the grain of a sales fact table, replace product codes with surrogate keys, join facts to dimensions, summarise by category and region, build a date dimension, keep history with SCD type 2, handle bridge tables and run QA checks. Part two goes deeper: change detection for nightly loads, revenue as was versus as is, month-end stock snapshots and why stock never adds up over time, order-fulfilment milestones, factless coverage tables, junk and role-playing dimensions, drill-across through conformed dimensions, budgets at a different grain, aggregate tables with distinct counts, and ratio measures done right. The final project is a reconciled star-schema dashboard with an Unknown share and a chart.
Why learn with Tabellab
- Practise in a real spreadsheetEvery lab runs in your browser and checks your cells instantly.
- Verifiable certificatePass the final exam and get a certificate with a public verification code.
- Try before you buyLesson 1 is free, with no sign-up or card needed.
- Who is behind TabellabBuilt by Babala Software in Füllinsdorf, Switzerland. Questions? hello@tabellab.com · Imprint
Lessons
- The Grain of a Fact Table: One Row per Order Line & the Duplicate CheckFree
- Surrogate vs Natural Keys: Key Mapping and the Unknown Member Locked
- Joining Facts to Dimensions: Enriching Sales with XLOOKUP and INDEX/MATCH Locked
- Aggregating by Dimension Attributes: SUMIFS by Category and Region Locked
- The Date Dimension: Date Keys, Quarters, Months and Weekdays from a Date Locked
- Slowly Changing Dimensions Type 2: Valid-From/To and the Right Version by Date Locked
- Many-to-Many & Bridge Tables: Spotting Double Counting and Allocating with Weights Locked
- Model QA: Orphan Keys, Inner-Join Losses and Reconciling Totals Locked
- Change Detection: Comparing the Source Extract with the Dimension (New, Changed, Unchanged) Locked
- Type 1 vs Type 2 Reporting: Revenue as Was, Revenue as Is and the Restatement Locked
- Periodic Snapshot Facts: Month-End Stock from Movements and the Semi-Additive Trap Locked
- Accumulating Snapshot Facts: Order Milestones, Lag Days and Overdue Open Orders Locked
- Factless Fact Tables: Promotion Coverage and the Products That Did Not Sell Locked
- Junk & Degenerate Dimensions: Folding Flags into One Key and Keeping the Order Number Locked
- Role-Playing Dimensions: One Date Dimension as Order Date and Ship Date Locked
- Conformed Dimensions & Drill-Across: Sales and Returns by Category Without the Fan Trap Locked
- Facts at Different Grains: Rolling Sales up to the Monthly Budget and Charting the Variance Locked
- Aggregate Tables: A Monthly Summary, Its Reconciliation and the Distinct-Count Trap Locked
- Non-Additive Measures: Margin %, Conversion Rate and Average Price in Summaries Locked
- Final Project: Larkfield Home's Star-Schema Sales Dashboard with QA Checks Locked
Learner reviews
Be the first to review this course.