Model analytics data as a star schema

8 steps · about 2 h 20 min · Intermediate

  1. See the shape of a star schema (article, Wikipedia, 10 min)

    One fact table joined to dimension tables, with an example query.

  2. Learn the core dimensional modelling techniques (article, Kimball Group, 30 min)

    The Kimball Group's own index of techniques, from the source of the method.

  3. Declare the grain first (article, Kimball Group, 5 min)

    Why every fact table needs one precise row meaning before any columns.

  4. Choose additive measures for the fact table (article, Wikipedia, 10 min)

    Explains additive, semi-additive and non-additive facts.

  5. Design descriptive dimension tables (article, Wikipedia, 10 min)

    Covers surrogate keys, conformed and role-playing dimensions.

  6. Handle dimension changes over time (article, Wikipedia, 15 min)

    Compares type 1, 2 and 3 approaches to history in dimensions.

  7. Apply a star schema in a BI tool (reference, Microsoft Learn, 20 min)

    Shows why BI models perform and read better as stars.

  8. Build a dimensional model with SQL in dbt (tutorial, dbt Labs, 40 min)

    Step-by-step build of fact and dimension models from raw tables.