Skip to content
All insights
GrowPower BI & FabricHow-To GuideJune 15, 2026

Power BI data modeling 101: star schema, relationships, and date tables

The Short Version
  • Split a flat one-big-table export into a fact table plus dimension tables to stop double-counting.
  • Keep one-to-many relationships single-direction unless a tested many-to-many design needs Both, and document why.
  • Build a continuous date table and mark it as the date table if you use classic time intelligence functions.
  • Verify the model with a card total and a calendar-ordered month table before trusting any measure.
Bottom line: When Power BI totals look wrong, check the data model before the formulas. Microsoft recommends a star schema, with a marked date table for classic time intelligence.

Power BI totals that look wrong, slicers that filter the wrong things, and measures that double-count can all trace to the data model. Check it before the formulas. This guide is for the analyst or operations lead at a small or midsize business who can build a chart and has not yet designed the tables under it. It covers fact and dimension tables, relationships, cross-filter direction, and a marked date table for time intelligence.

Star schema Sales (fact) Customer Item Date Salesperson
One fact table in the middle, dimension tables around it.

Prerequisites

  • Power BI Desktop installed (a recent version from the Microsoft Store or the standalone installer).
  • Sample dataset with at least one transactional table (sales, invoices, tickets) and one or more lookup tables (customers, products, dates).
  • Basic comfort with the Power BI Desktop layout: the Report view, Table view, and Model view icons on the left edge.

1. Fact Tables & Dimension Tables

A fact table holds the events you measure: one row per sale, per invoice line, per support ticket. It has numeric columns you add up (quantity, amount, hours) and key columns that point at the things involved (a CustomerKey, a ProductKey, a date).

A dimension table describes one of those things: one row per customer, per product, per date. It holds the labels you slice and group by (customer name, region, product category, month).

The target structure is a star schema: one fact table in the middle, dimension tables around it, each connected to the fact by a key. Drawn out, it looks like a star. Microsoft's star schema guidance for Power BI covers the design in more depth.

2. One-Big-Table Problems

Some reports start as a single flat export, such as a spreadsheet. Every row repeats the customer name, the region, the product category, and the amount. This is the one-big-table pattern, and it can cause two problems.

First, totals can double-count. If the customer's annual revenue is repeated on every order row, summing that column gives you revenue times the number of orders. Second, filtering can behave unexpectedly. A slicer on a repeated text column filters individual rows of the export. The fix is to split the descriptive columns into dimension tables and keep only keys and numeric columns in the fact table.

3. Data Load & Model View

  1. On the Home ribbon, select Get data and load your fact table and each dimension table as separate queries.
  2. If you opened Power Query Editor with Transform data, select Close & Apply to load them into the model.
  3. Select the Model view icon on the left edge. You will see each table as a box, with any autodetected relationships drawn as lines.

4. Relationships

Power BI Desktop can autodetect relationships when data loads, based on column names. An autodetected relationship can be wrong, so check each one.

  1. In Model view, drag the key column from a dimension table (for example, Customer[CustomerKey]) onto the matching key in the fact table (Sales[CustomerKey]). A line appears.
  2. To inspect it, select Manage relationships on the Home ribbon in Model view. In Report view, the same button is on the Modeling ribbon. Select a relationship, then Edit, to see the two columns, the Cardinality, and the Cross filter direction. Double-clicking a relationship line opens the same editor.
  3. For a clean star, each relationship should be One to many (1:*) from the dimension (the one side) to the fact (the many side). When the fact table is listed first, Power BI shows the same relationship as Many to one (*:1).

5. Cross-Filter Direction

Cross-filter direction decides which way a filter flows across a relationship.

  • Single means the dimension filters the fact, but not the reverse. A customer slicer filters sales.
  • Both (bidirectional) lets the filter flow in both directions. A one-to-one relationship always uses Both, and a bridge table between two dimensions in a many-to-many design needs it. Bidirectional relationships can slow queries and create ambiguous filter paths.

Microsoft's bi-directional relationship guidance recommends keeping them to a minimum. Keep one-to-many relationships on Single unless you have a specific reason and have tested the result. If a measure returns blanks or unexpected totals after you set a relationship to Both, check that relationship first.

Single-Direction Default

Start each model with single-direction one-to-many relationships. Switch one to bidirectional only when a many-to-many design needs it. Write down why, so the next person does not undo it by accident.

6. Date Table

Classic time intelligence functions (year-to-date, same period last year) need a dedicated date table with no missing dates. Microsoft also recommends a complete date table for the newer calendar-based time intelligence, which is in preview.

  1. In Table view, select New table on the Home ribbon.
  2. Enter a Data Analysis Expressions (DAX) formula that uses the CALENDAR function to generate a continuous range of dates, for example:
Date =
CALENDAR ( DATE ( 2023, 1, 1 ), DATE ( YEAR ( TODAY () ) + 1, 12, 31 ) )
  1. Add helper columns (Year, Month, Month number, Quarter) with New column, so you can sort and group cleanly.
  2. In Model view, relate Date[Date] to your fact table's date key as One to many, Single direction.

7. Date Table Marking

Microsoft requires this step if you use classic time intelligence functions. With calendar-based time intelligence it is usually optional. Marking a date table also removes the hidden auto date/time tables, so any visuals or measures built on those tables stop working as before.

  1. In the Fields pane, right-click your Date table.
  2. Choose Mark as date table, then Mark as date table again.
  3. In the dialog, pick the column that holds the continuous dates and confirm. Power BI checks that the column has unique values, no blanks, and no gaps. A Date/Time column also needs the same time on every value.

8. Model Verification

  1. Drop a simple measure (for example, Total Sales) into a card visual.
  2. Add a customer slicer and a date slicer.
  3. Confirm the card total matches a number you can verify by hand, and that selecting one customer changes the card.
  4. Build a quick table of Sales by Month and confirm the months are in calendar order. If they sort alphabetically, select the Month column in Report view and, on the Column tools tab, set Sort by column to a month-number column.

Follow-On Work

The next step is writing DAX measures on this model: a SUM, a CALCULATE with a filter, and year-over-year comparisons. Your data may be messier than a sample, or you may be unsure whether to split a wide table. We help with that modeling decision before the report work begins. Let's talk it through.

See where you stand. Then move forward.

Book a free intro call. We'll talk through where you are today and map a plan for growth, protection, automation, and alignment.

30 minutesNo obligationGet an initial estimate within one week