Diwali Offer!Flat 20% OFF
Enroll Now
PrakalpanaLive online tech training
Data Analytics⏱️ 12 min readπŸ“… Nov 26

Power BI Data Modeling and Star Schema: The Complete Guide (2026)

RM
Rohit Malhotraβ€’BI Developer
πŸ“‘ Contents (24 sections)

πŸ“ŒWhy Data Modeling Matters in Power BI

Most slow reports, wrong totals and unreadable DAX have the same root cause: a weak data model. Power BI data modeling is the design of tables and relationships that the engine (VertiPaq) and DAX work on. Get it right and measures become short, visuals become fast, and new questions take minutes instead of days.

Microsoft's own guidance is clear: use a star schema. This guide shows what that means and how to build one. If you have not built a report yet, start with the Power BI tutorial for beginners.

πŸ“ŒFact Tables and Dimension Tables

Fact tables record events or measurements: sales lines, transactions, attendance, tickets, stock movements. They are long (many rows), narrow, and mostly keys plus numbers.

Dimension tables describe the things involved: Date, Product, Customer, Store, Employee. They are short and wide, with descriptive text used for slicing and grouping.

πŸ“ŒWhat Is a Star Schema?

A star schema puts one fact table in the centre with dimension tables around it, each related one to many to the fact. Draw it and it looks like a star.

  • Date[Date] one to many Sales[OrderDate]
  • Product[ProductKey] one to many Sales[ProductKey]
  • Customer[CustomerKey] one to many Sales[CustomerKey]
  • Store[StoreKey] one to many Sales[StoreKey]
  • Filters flow from dimensions to the fact. A slicer on Product[Category] filters Sales; a visual by Date[Month] groups Sales. Every measure is a simple aggregation of the fact.

    Why star schema beats one flat table

  • Smaller model: descriptive text is stored once per product, not once per sales line.
  • Faster queries: VertiPaq compresses and filters dimensions efficiently.
  • Simpler DAX: no workarounds for duplicated attributes.
  • Multiple facts: Sales and Budget can share Date and Product dimensions.
  • Snowflake schema

    A snowflake normalises dimensions further: Product links to Subcategory, which links to Category. It works, but adds relationships and slows filtering. In Power BI, flatten snowflakes into one dimension in Power Query using merges. See the Power Query tutorial.

    πŸ“ŒRelationships: Cardinality and Filter Direction

    Cardinality

  • One to many (1:*): the normal case. The dimension key must be unique.
  • One to one (1:1): usually a sign the two tables should be merged.
  • Many to many (*:*): allowed, but use carefully; often a bridge table is cleaner.
  • Cross filter direction

  • Single: the dimension filters the fact. Use it by default.
  • Both (bidirectional): filters also flow from fact to dimension. It can create ambiguity and slow models. Prefer turning it on for one measure with CROSSFILTER.
  • Active and inactive relationships

    Only one active path is allowed between two tables. When Sales has OrderDate and ShipDate, relate both to Date, keep one active, and use USERELATIONSHIP in a measure:

    Sales by Ship Date =
    CALCULATE ( [Total Sales], USERELATIONSHIP ( Sales[ShipDate], 'Date'[Date] ) )

    This is called a role-playing dimension. The alternative is to load Date twice as Order Date and Ship Date tables, which is clearer for report users.

    πŸ“ŒThe Date Table

    Every serious model needs a dedicated date table:

  • one row per day, no gaps, covering all years in the facts
  • marked as a date table
  • columns for Year, Quarter, Month, MonthNo, Week, Day, financial year and financial quarter (April to March for most Indian companies)
  • Month sorted by MonthNo
  • Turn off Auto date/time in Options; it creates hidden date tables for every date column and bloats the model.

    πŸ“ŒHandling Common Modeling Problems

    Different granularity

    Budget is monthly by category; Sales is daily by product. Relate Budget to Date and Product at the right level (for example a Month column or a Category dimension), or allocate budget in Power Query.

    Many to many

    Customers in multiple segments, or accounts with multiple owners, need a bridge table between the two dimensions. Keep relationships single direction from the dimensions to the bridge, and enable filtering through it deliberately.

    Header and detail facts

    Order header (freight, discount) and order lines: flatten header attributes into the line table, or allocate header amounts across lines.

    Slowly changing dimensions

    When a customer moves region, decide whether history follows the old or new region. Type 2 dimensions keep history with surrogate keys and valid from and valid to dates, typically managed upstream in SQL or Fabric.

    πŸ“ŒModel Performance Checklist

  • 1Remove columns nobody uses, especially high cardinality text and GUIDs.
  • 2Split datetime into separate date and time columns, or round time.
  • 3Use integer surrogate keys for relationships.
  • 4Prefer measures to calculated columns.
  • 5Avoid bidirectional relationships unless needed.
  • 6Choose storage mode deliberately: Import for speed, DirectQuery for real time or very large sources, Dual and aggregations for composite models, and Direct Lake in Fabric.
  • 7Check size with VertiPaq Analyzer in DAX Studio, and test visuals with Performance Analyzer.
  • Once the model is right, DAX becomes the easy part. Keep the DAX functions cheat sheet close.

    πŸ“ŒModeling Questions Interviewers Ask

  • Why does Power BI prefer a star schema?
  • What happens if a dimension key is not unique?
  • When would you use a bidirectional relationship?
  • How do you handle order date and ship date?
  • How do you model budget versus actual at different grains?
  • More in our Power BI interview questions.

    πŸ“ŒFrequently Asked Questions

    What is the best data model for Power BI?

    A star schema: fact tables in the centre, denormalised dimension tables around them, one to many single direction relationships, and a marked date table.

    Is a flat table bad in Power BI?

    For tiny datasets it works. As data grows, a flat table becomes slow, large and hard to extend with new facts like budgets.

    How many fact tables can a model have?

    As many as needed. Facts share common (conformed) dimensions such as Date and Product.

    Should I build the star schema in SQL or Power Query?

    Upstream in SQL or Fabric when possible, so many reports share it. Power Query is fine for smaller solutions.

    Is data modeling part of PL-300?

    Yes, it is one of the most heavily weighted areas. See our PL-300 guide.

    πŸ“ŒLearn It Live

    Prakalpana's Power BI course is taught live online with an optional 1-on-1 track, where you design star schemas for real business scenarios and get your model reviewed by working BI developers. See the Power BI learning path, then WhatsApp or call +91 9180377502 for a free demo.

    RM

    Written by

    Rohit Malhotra

    BI Developer

    πŸš€ Master Data Analytics

    Live online + 1-on-1 Power BI training Β· Join 5000+ developers

    Not sure what to do? Book career counselling (β‚Ή200 / 30 min)

    Not sure what to learn next?

    A 1-on-1 session with an industry mentor and a roadmap built for you. How it works

    1. 1Discuss your goals
    2. 2Get a personal plan
    3. 3Start learning
    Book for β‚Ή200/ 30 min