Platform how-to

Power BI data modeling: star schema basics for people who aren't data engineers

Power BI is a great tool, and most of what makes a report fast and correct happens before the first visual. Here's the shape that makes it work, explained without the jargon.

Storek team5 min read

Whiteboard in the newsroom look: revenue by product category for an outdoor-gear retailer with tents first at $184k and extras last at $39k, a table of lookup tables with their row counts, and one sales table of 86,400 rows.
Sample dataA star layout explained with one board. Illustrative data.

Priya runs operations at Ridgeline Outfitters, a small chain of outdoor-gear stores. She loaded the monthly sales export into Power BI, dragged a few fields onto the canvas, and had a decent chart within an hour. Then the questions started. Revenue by brand? The brand lived in a different file. Revenue by store region? Another file. Each new question meant another merged column in an ever-wider table, and the file got slower every week.

Nothing was wrong with Power BI. The structure was the hard part. The fix has a name, the star schema, and you don’t need to be a data engineer to build one.

What a star schema is

A star schema splits your data into two kinds of tables.

Fact tables record things that happened. A sales line, a support ticket, a shipment. They are long (one row per event), mostly numbers and keys, and they are what you add up.

Dimension tables describe the things those events are about. One row per product, one row per store, one row per day. They are short and wide, full of names, categories and attributes you filter or group by.

Each dimension connects to the fact table through a key, such as ProductID. Draw it and the fact table sits in the middle with dimensions around it, like points of a star.

ProductProductIDNameCategoryBrandStoreStoreIDCityRegionSalesDateProductIDStoreIDCustomerIDAmountDateDateMonthYearCustomerCustomerIDSegment1 : *1 : *1 : *1 : *
Sample dataOne fact table in the middle; each dimension connects through a key with a one-to-many relationship.

Why the shape matters in Power BI

Power BI’s engine is built around this pattern. Filters flow from the “one” side of a relationship to the “many” side, so picking a category in a slicer filters the Product table, which filters the Sales rows for those products. Measures stay simple because there’s one place where the amounts live. And the file stays smaller, because the long table carries short keys instead of repeating “Ultralight 2-Person Tent, Tents, Ridgeline Brand” on every row.

Before and after

Here is a slice of Priya’s flat export. The values are invented.

DateProductCategoryStoreAmount
2026-10-03Trail Pack 40LBackpacksBoulder129.00
2026-10-03Summit Tent 2PTentsDenver349.00
2026-10-04Trail Pack 40LBackpacksDenver129.00
Sample dataFlat: every description is repeated on every sale.

And the same data as a fact table plus a Product dimension:

DateProductIDStoreIDAmount
2026-10-03P-104S-01129.00
2026-10-03P-220S-02349.00
2026-10-04P-104S-02129.00
Sample dataFact table: keys and numbers only.
ProductIDNameCategoryBrand
P-104Trail Pack 40LBackpacksRidgeline
P-220Summit Tent 2PTentsNorthfold
Sample dataProduct dimension: one row per product, with the descriptions.

Build it step by step

  1. Open Power Query and split the tables

    Go to Home > Transform data. Duplicate or reference your raw query once per dimension. In each dimension query, keep only the key and the descriptive columns, then use Home > Remove Rows > Remove Duplicates on the key so there is exactly one row per product, store or customer.

  2. Slim down the fact table

    In the fact query, keep the date, the keys and the numeric columns. Remove the descriptive columns that now live in dimensions. Check data types: keys should match the type used in the dimension (both Text or both Whole Number).

  3. Add a date table

    Create a table with one row per day covering your full date range, with Month, Quarter and Year columns. If you use the classic time intelligence functions, select it and choose Mark as date table from the Table tools ribbon.

  4. Relate the tables in Model view

    Select Close & Apply, then open Model view. Drag each dimension’s key onto the matching column in the fact table. Power BI should detect a one-to-many relationship with a single cross-filter direction. Open Manage relationships to confirm each one.

  5. Write measures against the fact table

    Create explicit measures, for example Total Sales = SUM(Sales[Amount]), and build visuals using columns from dimensions. Category from Product, Region from Store, Month from Date.

Common mistakes to avoid

  • Duplicate keys in a dimension. If two rows share a ProductID, Power BI creates a many-to-many relationship and totals can surprise you. Remove duplicates first. See fixing many-to-many relationships.
  • Mismatched key types. “00104” as text and 104 as a number won’t match. Our guide on cleaning data in Power Query covers leading zeros.
  • Wide month columns. If an export has a column per month, unpivot it first: unpivoting wide exports in Power Query.
  • Bidirectional filters everywhere. Keep single direction unless you have a specific reason to change it.

If your totals still disagree with a spreadsheet after modeling, work through why Power BI numbers don’t match Excel.

When the structure is the hard part

A star schema is mostly about knowing which columns describe which things and how files connect. That knowledge is often already sitting in the data, as we describe in your data already knows how it connects.

If building the model is more work than you have time for, Storek can do it for you. You add your files, it proposes how they connect on a data map for you to confirm, and your metrics get written down once as shared definitions. Then you can ask questions in plain words on a tidy model.

Sources

  1. Understand star schema and the importance for Power BI · Microsoft Learn · checked November 13, 2026
  2. Create and manage relationships in Power BI Desktop · Microsoft Learn · checked November 13, 2026

BI toolsSemantic layerData pipelines

FAQ

Questions, answered.

What is a star schema in Power BI?

A model with one central fact table of events, such as sales lines, surrounded by dimension tables that describe them, such as Product, Customer, Store and Date. Each dimension connects to the fact table with a one-to-many relationship, so the diagram looks like a star.

What is the difference between a fact table and a dimension table?

A fact table holds things that happened, usually one row per event, with numbers you add up and keys that point to dimensions. A dimension table holds one row per thing you filter or group by, like one row per product, with descriptive columns such as name, category and brand.

Should I just use one big flat table instead?

A single flat table works for small, one-off reports. As soon as you have two fact tables, or you want to filter both by the same customer or date, a star schema is easier to keep correct, smaller to store and simpler to write measures against.

Do I need a date table for a star schema?

It is strongly recommended. A dedicated date table with one row per day lets every fact table share the same calendar, months and fiscal periods. Relate it to each fact table's date column and use it for all time filters.

Book a demo

See your own data, delivered.

30 minutes. Your data or our sample. No slide deck. Pick a time straight after the form.