Star schema in Power BI: what it is and how to build one
Last updated · SANTOSPANHOL, S.L.
A star schema organises data into a central fact table (the numbers: amount, units, cost) surrounded by dimension tables (the descriptions: date, customer, product), joined by one-to-many relationships. It is the model Microsoft recommends for Power BI.
Why it matters
- Speed: filters flow from dimensions to facts and the engine resolves them over few columns.
- Simple DAX:
SUM(F_Sales[Amount])answers the same by customer, month or product. - One home per fact: a customer name is fixed in one row, not in thousands.
The pieces
| Table | What it holds | Example |
|---|---|---|
Fact (F_) | One row per event, with keys and numbers | F_Sales: Date, CustomerId, ProductId, Amount, Cost |
Dimension (D_) | One row per item, with its attributes | D_Customer: CustomerId, Name, Region |
| Relationship | One dimension row to many fact rows, single direction | D_Customer[CustomerId] 1:N F_Sales[CustomerId] |
How to build it from a flat Excel
- Split numbers from descriptions. Numeric columns (amount, units) go to facts; repeating text columns (customer, product, region) go to dimensions.
- Create each dimension in Power Query: duplicate the table, keep the attribute columns and remove duplicates.
- Add a key to each dimension and to the facts.
- Relate dimension to facts, one-to-many, single-direction filter.
- Connect the date to a date table.
Star or snowflake
A snowflake normalises dimensions into several levels (product → category → family). It saves space, adds hops and complicates DAX. For small and mid-size business reports, the star covers nearly everything with less upkeep.
Common slips
- Bidirectional relationships by default: they bring ambiguity and slowness.
- Facts carrying repeated descriptive text: that text is a dimension.
- Dates without a date table: time intelligence does not work.
Excel to Power BI builds this model (F_*, D_*, single-direction 1:N relationships) from your column names. Try it with your Excel.
FAQ
What is a fact table?
The central table of the model: one row per measurable event (a sale, an order, a clock-in) with its keys and numbers.
What is a dimension in Power BI?
A table describing something you filter or group by: date, customer, product, region.
How many dimensions should my model have?
As many as your questions need. A typical sales model has three to five: date, customer, product and region or salesperson.
Related guides
- How to go from Excel to Power BI in 5 minutes
- Date table in Power BI: create and mark it with DAX
- DAX measures for sales in Power BI
Your Excel, turned into a Power BI report. Free preview; download for 49,99 EUR (VAT included).