Power BI data modelling is the process of shaping your raw tables into a clean, related structure so reports stay fast and calculations stay correct. The short answer: load your data, open Model view, create relationships between fact and dimension tables, mark a date table, hide technical columns, and write explicit measures in DAX. You do not need a separate database or a star schema to start, but a little structure saves hours later.
What You'll Need
- Power BI Desktop installed from Microsoft's official site (the free version is enough to model).
- A data source — Excel, CSV, a database, or a cloud service you can connect to.
- Basic familiarity with tables, columns, and what a primary key is.
- A rough idea of the questions your report must answer, so you know which tables matter.
Menu labels in Power BI Desktop can differ slightly by version and region, so if a button name looks different, look for the closest match.
Step-by-Step
- Get the data in. On the Home ribbon, choose Get data, pick your source, and use the Navigator window to select only the tables or sheets you need. Avoid loading entire workbooks “just in case” — every extra table adds clutter and slows refresh.
- Clean in Power Query first. Before modelling, use Transform Data to remove blank rows, set correct data types (dates as Date, IDs as Whole Number or Text), rename columns to friendly names, and unpivot wide month columns into a single Date column plus a Value column. Click Close & Apply when done.
- Open Model view. Click the Model icon on the left rail. You will see your tables as boxes. This is where relationships live.
- Identify fact and dimension tables. Fact tables hold transactions or events (sales rows, sensor readings). Dimension tables hold descriptive attributes (Customer, Product, Date). Aim for one fact table surrounded by dimensions — a star schema.
- Create relationships. Drag the key column from a dimension table onto the matching column in the fact table. Power BI usually detects the cardinality (one-to-many). If it guesses wrong, double-click the relationship line and set the correct cardinality and cross-filter direction. Keep filters flowing from the “one” side to the “many” side.
- Add a dedicated Date table. Create one with DAX: Modeling tab > New table, then use
CALENDARorCALENDARAUTO()to generate a date column, and add Year, Month, and MonthNumber columns. Mark it as a date table (right-click the table > Mark as date table) and relate it to every date column in your fact tables. This makes time intelligence functions reliable. - Hide technical columns. In Model view, right-click ID columns and sort-order columns and choose Hide in report view. Report authors should see only meaningful fields.
- Set sort-by columns. For text fields like MonthName, select the column, then on the Column tools ribbon use Sort by column and pick MonthNumber. Otherwise charts sort alphabetically (April before January).
- Write explicit measures. In Report view or the Data pane, right-click your fact table > New measure. Start with
Total Sales = SUM(Sales[Amount]). Use measures, not calculated columns, for aggregations — they are evaluated at query time and stay correct across filters. - Format and categorise. Set measure formats (currency, percentage) and data categories (e.g., Geography > Country) so maps and visuals behave.
- Validate. Build a simple table visual with your measure and a dimension, then cross-check totals against the source. If numbers look wrong, check relationship direction and whether filters are flowing the way you expect.
Common Mistakes
- Flat single-table models. Loading one wide sheet and skipping relationships works for tiny data but breaks down with multiple fact tables or shared dimensions.
- Many-to-many relationships without thought. They can produce inflated totals. Prefer a bridge table or reshape the data.
- Bidirectional filters everywhere. They create ambiguous filter paths and slow performance. Use them only when you can explain why.
- Calculated columns for sums. They increase model size and do not respond to slicers the way measures do.
- Forgetting the date table. Time intelligence like year-to-date returns wrong results without a marked date table.
- Leaving auto date/time on. It creates hidden date tables per column and bloats the model. Turn it off in Options > Data load if you use your own date table.
Tips
- Name measures clearly (Total Sales, Sales YoY %) so report authors do not guess.
- Keep dimension tables narrow — drop unused columns in Power Query.
- Use a dedicated measures table (a blank table created with
{ }in DAX) to group measures away from data tables. - Document relationships in a text box on a hidden page for future you.
- Test with a small date range first, then expand.
Troubleshooting
If a relationship will not create, check that both columns have the same data type and that the “one” side has unique values. Duplicate keys on the one side cause errors — remove duplicates in Power Query.
If totals are doubled, you likely have two active filter paths to the same fact table. Remove one relationship or set it inactive and use USERELATIONSHIP in the specific measure.
If a measure returns blank, confirm the relationship is active and the column you filter on exists in the dimension, not the fact table.
If refresh is slow, reduce columns, avoid custom columns that could be done in the source, and check for high-cardinality text columns.
Frequently Asked Questions
Do I need a star schema?
It is strongly recommended. A star schema with one fact table and surrounding dimensions is the easiest shape for Power BI to query quickly and for you to reason about.
Should I use calculated columns or measures?
Use measures for aggregations and anything that must respond to slicers. Use calculated columns only for row-level attributes you need to slice or relate on.
Why mark a date table?
Marking a date table tells Power BI which table to use for time intelligence, so functions like TOTALYTD work correctly and auto date tables are not needed.
Can I model directly in the Power BI service?
You can edit some model properties in the service, but full relationship and DAX editing is done in Power BI Desktop. Publish the model when it is ready.
What is a bridge table?
A table that sits between two tables to resolve a many-to-many relationship, containing the keys from both sides. It keeps filter paths unambiguous.
How do I hide columns from report authors?
Right-click the column in Model view and choose Hide in report view. The column stays in the model but disappears from the field list.