Module 03 · Data modeling

Design a star schema

One fact table, several dimension tables around it.

Step by step8 minLesson 11 of 21 Free

A star schema is the table layout Power BI likes best: one fact table (events, e.g. sales) in the middle, surrounded by dimension tables (descriptions, e.g. products, dates, regions). It looks like a star.

Comparison diagram: a star schema with the Sales table in the middle and Date, Product and Region around it (recommended), versus tables connected in a chain (avoid). Zoom
Left: a star schema (recommended). Right: a chain (avoid).

Click a number on the picture or in this list to highlight that area.

Step by step

  1. Step 1: Identify your fact table (the events: Sales) and dimension tables (Product, Date, Region).

  2. Step 2: Arrange the dimensions around the fact table so the relationships form a star, not a chain.

  3. Step 3: Add a dedicated Date table (Modeling → New table, for example with the DAX below), relate 'Date'[Date] to Sales[Date], then mark it via Table tools → Mark as date table for time intelligence.

    DAX
    Date = CALENDARAUTO()

    Tip: A star schema makes DAX simpler and reports faster than one giant flat table.