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.

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.
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.
| Date | Product | Category | Store | Amount |
|---|---|---|---|---|
| 2026-10-03 | Trail Pack 40L | Backpacks | Boulder | 129.00 |
| 2026-10-03 | Summit Tent 2P | Tents | Denver | 349.00 |
| 2026-10-04 | Trail Pack 40L | Backpacks | Denver | 129.00 |
And the same data as a fact table plus a Product dimension:
| Date | ProductID | StoreID | Amount |
|---|---|---|---|
| 2026-10-03 | P-104 | S-01 | 129.00 |
| 2026-10-03 | P-220 | S-02 | 349.00 |
| 2026-10-04 | P-104 | S-02 | 129.00 |
| ProductID | Name | Category | Brand |
|---|---|---|---|
| P-104 | Trail Pack 40L | Backpacks | Ridgeline |
| P-220 | Summit Tent 2P | Tents | Northfold |
Build it step by step
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.
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).
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.
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.
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
- Understand star schema and the importance for Power BI · Microsoft Learn · checked November 13, 2026
- Create and manage relationships in Power BI Desktop · Microsoft Learn · checked November 13, 2026