Star Schema vs Snowflake Schema in Power BI: Full Guide
Key Takeaways
- • Star schema is the right default for Power BI — in nearly every situation. Microsoft's own documentation names star schema design as the preferred approach for models optimized for performance and usability. This isn't a community preference; it's how the underlying engine was designed.
- • A star schema places one central fact table at the middle, with flat dimension tables connected directly to it — one relationship per dimension, no chains. A snowflake schema breaks those dimension tables into sub-tables, creating a branching structure with more tables and more relationships.
- • Power BI's VertiPaq storage engine compresses flat columns so efficiently that the storage argument for normalizing dimensions — the core reason snowflake schemas exist in relational databases — largely disappears inside Power BI. You add relationships and complexity without getting the storage benefit back.
- • Every extra relationship in a snowflake chain is a potential point where DAX filter context behaves unexpectedly. Star schemas have fewer relationships, which means filter propagation is more transparent and easier to reason about when writing measures.
- • Three specific scenarios justify keeping a snowflake structure: large conformed dimensions shared across multiple fact tables, DirectQuery models where source query optimization outweighs modeling simplicity, and cases where the transformation cost of flattening is prohibitive relative to the performance gain.
The most common structural mistake in Power BI data modeling isn't a wrong relationship or a mislabeled column — it's importing a normalized database structure directly into a Power BI model without reshaping it first. The model that works well in a relational database and the model that works well in Power BI are designed around different principles. This guide explains exactly where they differ and what to do about it.
What Is a Star Schema?
A star schema is a data model where a single fact table sits at the center, connected by direct relationships to multiple dimension tables — each dimension flat, each connecting only to the fact table.
The fact table holds everything measurable: every sale, every order, every transaction. Each row is one event. Numeric columns (Revenue, Quantity, Cost) are what measures will aggregate. Non-numeric columns are foreign keys — IDs that connect each event row to the right dimension record.
Dimension tables describe the context of each event: which product, which customer, which date, which location. Each dimension table connects directly to the fact table, one relationship per dimension. Looking at this layout in Power BI's Model view, the shape resembles a star — the fact table in the center, dimensions branching outward — which is where the name comes from.
Fact_Sales:
| SaleID | DateID | ProductID | CustomerID | Quantity | Revenue |
|---|---|---|---|---|---|
| 1 | 20260101 | 101 | 201 | 3 | 15,000 |
| 2 | 20260102 | 102 | 201 | 1 | 4,200 |
| 3 | 20260103 | 101 | 202 | 2 | 10,000 |
| 4 | 20260104 | 103 | 203 | 5 | 8,750 |
| 5 | 20260105 | 102 | 202 | 4 | 16,800 |
Dim_Product — flat, star schema version:
| ProductID | ProductName | Category | Brand | UnitPrice |
|---|---|---|---|---|
| 101 | Laptop Pro | Computers | TechCorp | 5,000 |
| 102 | Wireless Mouse | Peripherals | Logitech | 4,200 |
| 103 | UHD Monitor | Displays | Samsung | 1,750 |
Dim_Customer — flat:
| CustomerID | CustomerName | Region | Segment |
|---|---|---|---|
| 201 | Acme Corp | North | Enterprise |
| 202 | Beta Ltd | South | SMB |
| 203 | Gamma Inc | East | SMB |
Three tables total. Fact_Sales connects to Dim_Product through ProductID, and to Dim_Customer through CustomerID. A slicer on Category filters Dim_Product, and that filter flows through one relationship into Fact_Sales. Clean, flat, and readable in Model view without having to trace chains.
What Is a Snowflake Schema?
A snowflake schema normalizes dimension tables into sub-tables — instead of storing Category and Brand as columns in Dim_Product, each gets its own separate table, connected to Dim_Product via a foreign key.
Dim_Product — snowflake version (foreign keys replace text values):
| ProductID | ProductName | CategoryID | BrandID | UnitPrice |
|---|---|---|---|---|
| 101 | Laptop Pro | 10 | 1 | 5,000 |
| 102 | Wireless Mouse | 11 | 2 | 4,200 |
| 103 | UHD Monitor | 12 | 3 | 1,750 |
Dim_Category — sub-table:
| CategoryID | Category |
|---|---|
| 10 | Computers |
| 11 | Peripherals |
| 12 | Displays |
Dim_Brand — sub-table:
| BrandID | Brand |
|---|---|
| 1 | TechCorp |
| 2 | Logitech |
| 3 | Samsung |
Now there are five tables instead of three. Two extra relationships. To filter sales by category, Power BI must traverse two relationships: Fact_Sales → Dim_Product → Dim_Category. The data is identical to the star version — only the shape of the model has changed.
Why Star Schema Works Better in Power BI: Three Engine-Level Reasons
The preference for star schema in Power BI isn't a stylistic convention — it's directly tied to how the VertiPaq engine stores and queries data. Three specific mechanisms explain it.
Reason 1: How VertiPaq Compresses Columns
Power BI stores data using a columnar engine called VertiPaq. Rather than storing data row by row the way a traditional relational database does, VertiPaq stores data column by column and compresses each column independently using value encoding.
The compression efficiency depends on how many unique values a column contains. A column with three unique values — "Computers," "Peripherals," "Displays" — repeated across three million rows compresses to nearly zero additional storage cost, because VertiPaq encodes the three values once and stores only the reference index for each row.
In a traditional relational database, storing "Computers" as a text string across many rows wastes space. Normalizing it into a CategoryID integer that references a separate lookup table is how relational databases solve that problem. In Power BI, this problem does not exist in the same way. VertiPaq's value encoding already eliminates repeated text strings — "Computers" stored in a flat Dim_Product column compresses just as efficiently as a CategoryID integer column would. What the snowflake schema does add is an extra table and an extra relationship — both of which have a cost at query time — without delivering the storage benefit that justified them in the first place.
Reason 2: Filter Context Travels Fewer Hops
Every time a Power BI visual renders, DAX evaluates your measures inside a filter context — the set of active filters coming from slicers, visual rows and columns, page filters, and anything else the user has applied. Those filters travel through your model's relationships to reach the fact table.
In a star schema, the path is direct and predictable: Dim_Product → Fact_Sales (1 hop). In a snowflake schema, the same filter travels: Dim_Category → Dim_Product → Fact_Sales (2 hops). Each relationship in the chain is a point where the filter direction, cardinality, or cross-filter behavior can produce unexpected results in a DAX measure. Star schemas minimize the number of relationships that filter context must traverse, which makes DAX formulas more predictable and easier to debug.
Reason 3: Query Execution Requires Fewer Joins
Every visual in a Power BI report generates a query that VertiPaq executes against the in-memory column store. Fewer relationships in the model means fewer joins in those queries, which means faster visual rendering. On a Fact_Sales table with 50 million rows and dozens of concurrent report viewers, the difference in query execution time becomes measurable and significant.
Three Scenarios Where Snowflake Is Defensible
Scenario 1: Large Conformed Dimensions Shared Across Multiple Fact Tables
In an enterprise semantic model with multiple subject areas (Sales, Finance, Operations), a dimension like Customer or Geography might be shared across five or six different fact tables. Flattening might mean maintaining multiple copies that need continuous synchronization.
Scenario 2: DirectQuery Models Where Source Query Structure Matters
If the source database is a highly normalized production system whose indexes and optimizer are tuned for normalized joins, forcing denormalized joins in generated SQL might produce worse query performance. Always test with DAX Studio Server Timings.
Scenario 3: When the Flattening Cost Is Genuinely Prohibitive
If your source delivers dozens of complex sub-tables and transformation scripts risk breaking on upstream schema changes, the engineering maintenance cost may outweigh the marginal performance gain.
How to Convert a Snowflake Into a Star Schema in Power Query
For most projects where data arrives from a normalized source, the conversion happens in Power Query using Merge Queries.
Step 1: Load All Source Tables
Connect to your source and load each table — fact and all dimension sub-tables — as separate queries in Power Query Editor. In the example: Fact_Sales, Dim_Product, Dim_Category, and Dim_Brand as four separate queries.
Step 2: Merge Dim_Category Into Dim_Product
Click the Dim_Product query to make it active. Go to Home → Merge Queries. Configure the dialog:
- Top table: Dim_Product, join key column: CategoryID
- Bottom table: Dim_Category, join key column: CategoryID
- Join Kind: Left Outer — preserves all Dim_Product rows
Click OK, expand only Category, uncheck original prefix, and delete the redundant CategoryID column.
Step 3: Repeat for Dim_Brand
Follow the identical merge process to bring Brand from Dim_Brand directly into Dim_Product. Delete BrandID after expanding.
Step 4: Disable Load on the Sub-Tables
Right-click Dim_Category and Dim_Brand in the Queries pane and uncheck Enable Load. They continue to exist as transformation steps used internally by Power Query, but they no longer appear as tables in the Power BI model.
Step 5: Verify in Model View
Open Model view after closing and applying. You should see three tables with two relationships — Fact_Sales → Dim_Product and Fact_Sales → Dim_Customer. No chains, no sub-tables. A clean star.
The M Code behind the Dim_Product transformation:
let
Source = Dim_Product_Raw,
#"Merged Category" = Table.NestedJoin(
Source, {"CategoryID"},
Dim_Category, {"CategoryID"},
"Dim_Category", JoinKind.LeftOuter
),
#"Expanded Category" = Table.ExpandTableColumn(
#"Merged Category",
"Dim_Category",
{"Category"},
{"Category"}
),
#"Merged Brand" = Table.NestedJoin(
#"Expanded Category", {"BrandID"},
Dim_Brand, {"BrandID"},
"Dim_Brand", JoinKind.LeftOuter
),
#"Expanded Brand" = Table.ExpandTableColumn(
#"Merged Brand",
"Dim_Brand",
{"Brand"},
{"Brand"}
),
#"Removed FK Columns" = Table.RemoveColumns(
#"Expanded Brand",
{"CategoryID", "BrandID"}
)
in
#"Removed FK Columns"
The DAX Difference in Practice
Scenario: A measure calculating revenue for the Computers category only.
Computers Revenue = CALCULATE(
SUM(Fact_Sales[Revenue]),
Dim_Product[Category] = "Computers"
)
Filter hits Dim_Product directly; one relationship carries it into Fact_Sales.
Computers Revenue = CALCULATE(
SUM(Fact_Sales[Revenue]),
Dim_Category[Category] = "Computers"
)
Filter must traverse Dim_Category → Dim_Product → Fact_Sales. Any non-default direction can silently corrupt outputs.
Side-by-Side Comparison
| Feature | Star Schema | Snowflake Schema |
|---|---|---|
| Table count | Fewer (1 fact + N flat dims) | More (sub-dimension tables added) |
| Relationship count | Fewer (each dim connects directly to fact) | More (chains between dims and sub-dims) |
| VertiPaq compression | Excellent on flat text columns | Similar compression, but extra FK columns add overhead |
| Query speed | Faster — fewer joins at query time | Slower — multi-table traversal at each query |
| DAX filter propagation | Single-hop — predictable and easy to debug | Multi-hop — more opportunity for silent errors |
| Model readability | Immediately clear in Model view | Requires tracing chains to understand |
| Storage benefit in Power BI | Good — VertiPaq handles repeated values | Minimal — relational storage motivation disappears |
| Storage benefit in RDBMS | Lower (text values repeat in dim rows) | Higher (normalized values stored once per lookup) |
| Microsoft's guidance | ✓ Explicitly recommended | ✗ Not recommended as default |
| Best for | Virtually all Power BI models | Three narrow enterprise exceptions |
Common Mistakes
In Model view, if you see a chain where a dimension connects to another dimension rather than to the fact table, flatten it in Power Query.
A transactional database is built for read-write OLTP efficiency. Power BI is built for read-intensive analytical query performance.
Setting relationships to bidirectional creates ambiguity and performance degradation. Flattening the chain is the correct solution.
VertiPaq encodes and compresses the text column in the flat dimension just as efficiently as the integer FK column without needing extra tables.
Frequently Asked Questions
Should I always use a star schema in Power BI?
Nearly always, yes. Microsoft's official documentation names star schema as the preferred design for Power BI models. The VertiPaq engine and DAX language are both built around dimensional models with separated fact and dimension tables. Start with star schema and only deviate when a specific, documented reason makes the trade-off worthwhile.
What is the main difference between a star and snowflake schema?
In a star schema, dimension tables connect directly to the fact table and contain all their attributes in one flat table. In a snowflake schema, those dimension tables are broken into sub-tables — a product dimension might have Category and Brand as separate tables connected to it via foreign keys — creating chains of relationships rather than a single hop from dimension to fact.
Does snowflake schema save storage in Power BI?
Not meaningfully. The storage saving from normalization comes from avoiding repeated text values in a relational database. Power BI's VertiPaq engine handles repeated values in flat columns very efficiently through its own compression — so the motivation for normalization largely disappears once data is inside the Power BI model.
How do I convert a snowflake schema to a star schema in Power BI?
Use Merge Queries in Power Query Editor. Select the dimension table you want to flatten, merge in the sub-dimension table using the shared foreign key, expand the relevant attribute columns from the sub-table into the parent dimension, delete the foreign key column, and disable load on the sub-dimension table. The result is a flat dimension that connects to the fact table in a single relationship.
Can I leave my data in snowflake format if it arrives that way from the source?
You can, but you generally shouldn't. Flattening the dimensions in Power Query before loading them into the model is the correct approach for import mode. The transformation happens once at refresh time and the result — a flat, star-schema-shaped model — is what sits in memory and serves queries at report time.
What is VertiPaq and why does it affect this decision?
VertiPaq is the in-memory columnar storage engine that powers Power BI. It stores data column by column, compresses each column based on its cardinality, and is specifically built for the dimensional model structure that star schemas use. Models shaped like star schemas compress better, query faster, and produce more predictable DAX behavior with VertiPaq than chains of normalized dimension tables do.
Recommended Next Guides & Deep Dives
Continue expanding your Power BI and Fabric architecture knowledge with these closely connected tutorials:
-
Power Query M Language for Beginners
→
Flatten snowflake sub-dimension tables using Power Query Merge transformations.
-
How to Unpivot Messy Spreadsheet Data
→
Convert wide crosstab spreadsheets into normalized star schema fact tables.
-
How to Build a Dynamic Date Table in DAX
→
Design a conformed date dimension connected directly to your fact tables.
-
CALCULATE in DAX: 5 Real-World Examples
→
See how star schemas eliminate ambiguous relationship paths in DAX filter contexts.
-
PL-300 Certification Guide 2026
→
Review key data modeling concepts tested on Microsoft's official exam.
Step-by-Step Implementation Sandbox
1. Load All Source Tables
Connect to your source and load each table — fact and all dimension sub-tables — as separate queries in Power Query Editor (e.g. Fact_Sales, Dim_Product, Dim_Category, and Dim_Brand).
2. Merge Dim_Category Into Dim_Product
Select the Dim_Product query, go to Home > Merge Queries, match CategoryID with Left Outer join, expand the Category column, and delete the redundant CategoryID foreign key.
3. Repeat for Dim_Brand
Follow the identical merge process on Dim_Product to bring Brand from Dim_Brand directly into Dim_Product and remove BrandID.
4. Disable Load on the Sub-Tables
Right-click Dim_Category and Dim_Brand in the Queries pane and uncheck Enable Load so they function solely as upstream staging queries without bloating the data model.
5. Verify in Model View
Click Close & Apply and inspect the Model view. Confirm direct 1-to-many relationships from Fact_Sales to Dim_Product and Dim_Customer with no intermediate relationship chains.
Frequently Asked Questions
Should I always use a star schema in Power BI?
Nearly always, yes. Microsoft's official documentation names star schema as the preferred design for Power BI models. The VertiPaq engine and DAX language are both built around dimensional models with separated fact and dimension tables. Start with star schema and only deviate when a specific, documented reason makes the trade-off worthwhile.
What is the main difference between a star and snowflake schema?
In a star schema, dimension tables connect directly to the fact table and contain all their attributes in one flat table. In a snowflake schema, those dimension tables are broken into sub-tables — a product dimension might have Category and Brand as separate tables connected to it via foreign keys — creating chains of relationships rather than a single hop from dimension to fact.
Does snowflake schema save storage in Power BI?
Not meaningfully. The storage saving from normalization comes from avoiding repeated text values in a relational database. Power BI's VertiPaq engine handles repeated values in flat columns very efficiently through its own compression — so the motivation for normalization largely disappears once data is inside the Power BI model.
How do I convert a snowflake schema to a star schema in Power BI?
Use Merge Queries in Power Query Editor. Select the dimension table you want to flatten, merge in the sub-dimension table using the shared foreign key, expand the relevant attribute columns from the sub-table into the parent dimension, delete the foreign key column, and disable load on the sub-dimension table. The result is a flat dimension that connects to the fact table in a single relationship.
Can I leave my data in snowflake format if it arrives that way from the source?
You can, but you generally shouldn't. Flattening the dimensions in Power Query before loading them into the model is the correct approach for import mode. The transformation happens once at refresh time and the result — a flat, star-schema-shaped model — is what sits in memory and serves queries at report time.
What is VertiPaq and why does it affect this decision?
VertiPaq is the in-memory columnar storage engine that powers Power BI. It stores data column by column, compresses each column based on its cardinality, and is specifically built for the dimensional model structure that star schemas use. Models shaped like star schemas compress better, query faster, and produce more predictable DAX behavior with VertiPaq than chains of normalized dimension tables do.