Skip to content
Excel a Power BI

Excel a Power BI › Guides

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

TableWhat it holdsExample
Fact (F_)One row per event, with keys and numbersF_Sales: Date, CustomerId, ProductId, Amount, Cost
Dimension (D_)One row per item, with its attributesD_Customer: CustomerId, Name, Region
RelationshipOne dimension row to many fact rows, single directionD_Customer[CustomerId] 1:N F_Sales[CustomerId]

How to build it from a flat Excel

  1. Split numbers from descriptions. Numeric columns (amount, units) go to facts; repeating text columns (customer, product, region) go to dimensions.
  2. Create each dimension in Power Query: duplicate the table, keep the attribute columns and remove duplicates.
  3. Add a key to each dimension and to the facts.
  4. Relate dimension to facts, one-to-many, single-direction filter.
  5. 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

Your Excel, turned into a Power BI report. Free preview; download for 49,99 EUR (VAT included).

Try it with my Excel