This summary is produced by the author, and not by AI.
You’re building a Power BI report. It starts with one big table, and you’ve imported all your information from Excel or straight from a source system. You can see your total sales, best-selling parts, sales by region, and revenue over time. So far, everything is fine. But more questions start coming in: can we see year-to-date sales? Can we bring in data from another source? What about making the report faster? At this point, you end up asking for help from a Power BI expert. It doesn’t matter who you ask. The answer is always the same: “Build a star schema.”
In this article, you’ll learn what that means. By the end, you'll know what a star schema is, how to sort your own tables into facts and dimensions, and why the star schema is so useful in Power BI.
A star schema is a dimensional data model that lets you organise data in a database in a way that’s easy to understand and analyse. It consists of one central fact table connected to a number of dimension tables. When you draw the model with the fact table in the middle, it resembles a star. That’s where the name comes from. (Note that a dimensional model can have more than one fact table, each forming a star with potentially shared dimensions. Such a model, with multiple star schemas, is known as a galaxy schema.)
The star schema has its roots in dimensional modelling: an approach to analytical data design popularised by Ralph Kimball in his 1996 book, The Data Warehouse Toolkit.
In this sense, the star schema predates Power BI by decades. It fits naturally with the way Power BI’s tabular data model works, however, and makes models easier to understand, calculations easier to manage, and queries more efficient.
For a more concrete example of a star schema, imagine you're SpaceParts, a supplier selling spaceship parts, wanting to analyse sales across different parts, customers, delivery stations, promotions, and dates. You have information about individual sales, parts sold, the customers who bought them, where the orders were delivered, and the dates of those transactions.
Instead of putting all of this information into one big table, you organise it into six separate tables. It should look something like this:
At the centre of the model is a Sales fact table, which records individual transactions, including measurable values such as sales amounts, quantities, and discounts.
Connected to it are five dimension tables. Each of them contains descriptive information about its subject, listing the date of the sale, the part sold, the customer, the station each order was delivered to, and the promotion.
The tables connect through relationships, with each transaction in the Sales table containing identifiers that link to the relevant records in the dimension tables.
The fact table tells you what happened and gives you the numbers you want to measure, while the dimension tables provide the context you need to explore those numbers.
For example, you can see sales by part type by filtering the Part table, or use the Station table to compare stations or regions.
A star schema consists of fact tables and several dimension tables.
Before we get into fact tables, the first aspect we need to talk about is grain. Grain describes the exact level of detail or the specific event which a single row in a fact table represents.
In our example, we’ve defined the grain of the Sales table as one order line, meaning one part on one order. This matters because different types of data can represent different levels of detail.
Let’s say SpaceParts wants to compare actual sales against its monthly budget. You could combine both in one table, but if you do, the monthly budget might be repeated across every sales line. If Power BI then adds up those repeated values, you might end up with a reported budget much larger than the real budget.
This is why it’s usually better to keep order-line sales and monthly budgets in separate tables, each with their own grain. When they share dimensions (such as Part), and each monthly budget is dated the first of the month (or last, pick one and stick with it), you can compare actual performance to budget at monthly level without mixing different levels of detail.
Define what one row represents before building a fact table, and keep that level of detail consistent throughout.
Fact tables record business events and transactions, such as sales, customer orders, website visits, or deliveries, with each row representing an event or part of an event that the business wants to analyse.
To return to our SpaceParts example, the Sales table is the fact table, which records individual sales. Each row represents a transaction or, more precisely, one row per order line.
A typical Sales fact table might contain:
So, the keys provide the links between the tables, and the measures provide the numbers you want to analyse. For example, you can use SalesAmount to calculate total revenue or Quantity to find out how many parts were sold.
Fact tables often contain a large number of rows because they record individual business events, so they grow as the business processes more orders, processes more transactions, or serves more customers.
Dimension tables hold the descriptive information that gives context to everything that’s recorded in the fact tables.
Following our example, the Sales table connects to five dimensions:
Each dimension table typically contains one row per entity, identified by a unique key. For example, each part has its own PartKey linking it to the relevant sales transactions.
Dimension tables usually contain descriptive attributes rather than measures for aggregation. They also tend to have fewer rows than fact tables, as SpaceParts typically has far more sales than it has parts or stations.
Here’s what that looks like for the big table from the start of this article.
If you'd filter or group by it, it belongs in a dimension table. If you'd sum, count, or average it, it belongs in a fact table.
A star schema organises your data and determines how filters flow through your Power BI model whenever a report or agent queries it.
Each dimension table connects to the fact table through a one-to-many relationship. The “1” side is always a dimension table, because each date, part, customer, or promotion has a unique ID. The “*” (many) side is always a fact table, because a single part can appear in many sales transactions.
By default in Power BI, filters flow in one direction: from the dimension table towards the fact table. This allows Power BI to use the descriptive information in the dimension tables to filter the transactions used in calculations.
You can learn more about setting up these connections in our guide to creating semantic model relationships.
Let’s say you want to see sales for one type of part only, e.g. engines. You select “Engines” in a Part Type slicer.
Here’s what happens:
You don’t have to change the underlying data or write a new formula; the existing relationship and measure handle that selection automatically.
In dimensional modelling, a measure is a numeric column in a fact table that you want to analyse. In Power BI, a measure is a DAX calculation that tells the model how to calculate that value.
For example, say you define the Sales Amount measure using the Sales fact table:
// Measure on the fact table
Sales Amount =
SUM ( 'Sales'[SalesAmount] )
This is the kind of query that a bar chart visual with Part Type and Sales Amount sends to the model:
// Group sales by a dimension attribute
EVALUATE
SUMMARIZECOLUMNS (
'Part'[PartType],
"Sales Amount", [Sales Amount]
)
The Sales Amount measure never mentions the Part table; it only calculates the value using the SalesAmount column. The relationship between Sales and Part handles the filtering, which allows Power BI to calculate the sales amount separately for each part type.
A star schema makes your Power BI model easier to work with, more efficient, and better equipped to handle changing reporting needs.
With a well-structured star schema, common DAX calculations become easier to write and maintain.
For example, a dedicated Date dimension lets you calculate year-to-date sales using a relatively simple measure:
Sales YTD =
CALCULATE (
[Sales Amount],
DATESYTD ( 'Date'[Date] )
)
The Date table provides a consistent calendar for these calculations. If you don’t have a proper Date dimension, you may need more complex custom calculations to achieve the same result reliably.
As of November 2026, Microsoft recommends calendar-based time intelligence, which is still in preview. You define a calendar on your Date table and refer to that calendar in the time intelligence functions, instead of a date column. The classic functions in the example above still work.
Power BI’s underlying engine is designed to work efficiently with star schemas. They help it compress data, use memory efficiently, and respond quickly to complex report queries. In SQLBI’s tests, a single flat table was slightly faster on a few simple queries but became much slower as queries grew more complex.
In other words, star schemas can reduce model size, and one reason for that is columnar compression: Power BI can store each distinct value in a column once, then use encoded indices to represent it across the rows.
For instance, consider the Part table in our SpaceParts example. In a single flat sales table, every sale would include the part’s name, type, brand, and ship class. In a star schema those details are stored in the Part dimension, while each sale only needs a PartKey to identify the part.
Each sale still needs one index for every column. In a flat table, every sale stores four indices for its part, one each for the name, type, brand and ship class. In a star schema, every sale stores only one index, for the PartKey. This gives you a model that can handle growing volumes of transactions more efficiently and is easier to extend as reporting needs change.
Because a star schema gives your data a clear, predictable structure, it’s easier for report authors to find the fields they need. For example, instead of searching through a long list of unrelated columns to find Region, they only need to look under Station.
Clear table names, well-defined relationships, and consistent dimensions also help AI tools interpret the model. When Copilot or an agent is asked to answer a question or write DAX, the star schema gives it a logical structure to work with and fewer ambiguous fields to choose between.
That’s also why Microsoft’s guidance for preparing semantic models for Copilot recommends using a star schema: the model is easier for people to understand, as well as easier for AI to navigate.
A star schema separates what happened in your business (facts) from the details that describe it (dimensions). Fact tables hold the transactions and numbers you want to analyse, and dimension tables provide the context for filtering and grouping them. Power BI is designed to work with this structure, which makes calculations easier to write, models more efficient, and reports faster. Authors and AI tools like Copilot also benefit from a clear, well-organised model, as it’s easier to understand and work with.
Ready to check your own model? Open it in Power BI’s Model view, look at how the tables connect, and whether each fact table sits at the centre of its own star, with the relevant dimensions around it.
Design and check star schemas in Tabular Editor 3.
Give Tabular Editor a spin