Power Pivot and the Excel Data Model Explained
Power Pivot is Excel's data model. It lets you load several tables, link them with relationships, hold far more rows than a worksheet (which stops at 1,048,576 rows), and write DAX measures that a pivot table can use. In practice it replaces dozens of VLOOKUP columns with one clean model. Availability depends on your Microsoft 365 plan or Excel edition, so check that the Power Pivot tab is available.
What problem does the data model solve?
A normal pivot table needs one flat table. To bring customer region into a sales table you add a lookup column next to 50,000 rows, and then another for product category. The file grows, slows and becomes fragile.
The data model keeps the tables separate and joined. A Sales table holds one row per sale with a customer ID and a product ID. A Customers table holds one row per customer with name and county. A Products table holds one row per product with its category and cost. A pivot table can then use fields from all three at once, as if they were one table, without a single lookup formula.
How do you build a data model in five steps?
- Make each source an Excel Table. Select the data, press Ctrl+T and give it a name such as Sales, Customers or Products.
- Add each table to the data model. Choose Power Pivot, Add to Data Model. Or load them with Data, Get Data and tick Add this data to the Data Model.
- Create relationships. In Power Pivot choose Diagram View, then drag Customer ID from Sales to Customer ID in Customers. Do the same for products. The lookup table must have unique values in the linked column.
- Add measures. In the calculation area write a measure, for example Total Sales := SUM(Sales[Amount]).
- Insert a PivotTable from the data model. Choose Insert, PivotTable, and select Use this workbook's Data Model. All three tables appear in the field list.
One-to-many, in plain words
The link between Customers and Sales is one-to-many: one customer, many sales. The filter runs from the one side to the many side. If you pick Kerry in a Customers field, only Kerry's sales are shown. This is the pattern to keep to: lookup tables describe things, and the fact table records events.
What are measures and why not just use calculated columns?
A calculated column adds a value to every row and takes up memory. A measure is calculated on the fly for whatever is visible in the pivot table, so it is faster and smaller. Prefer measures for totals, ratios and comparisons.
- Total Sales := SUM(Sales[Amount])
- Total Cost := SUMX(Sales, Sales[Quantity] * RELATED(Products[Unit Cost]))
- Margin % := DIVIDE([Total Sales] - [Total Cost], [Total Sales])
SUMX goes row by row and RELATED pulls the cost from the products table. That one formula replaces a helper column in a 50,000 row sheet.
Worked example: an Irish homeware retailer
Gráinne runs a homeware retailer with shops in Dublin, Cork and Galway. Her Sales table has 60,000 lines for 2026. Total sales are €1,500,000 and the cost calculated by SUMX is €975,000. The margin measure gives (1,500,000 - 975,000) / 1,500,000 = 525,000 / 1,500,000 = 35%. When she puts Category from the Products table in Rows and County from the Customers table in Columns, the pivot shows margin for each combination, and she can see which category and county earn the most. Without a model she would need two lookup columns and a second sheet for cost; with the model she has a clean report that updates when she refreshes.
The same ideas apply in Power BI, so the work is reusable: see Power BI for finance teams. For a first look at the tool the data comes from, read our pivot tables guide.
Common mistakes
- Loading the same data twice, once as a worksheet and once into the model, so the file doubles in size.
- A lookup table with duplicate keys. The relationship will not create or the numbers will be wrong. Remove duplicates in Power Query first.
- Many-to-many relationships built to fix a data problem. Fix the data instead.
- Putting everything in one giant table because it is familiar.
- Skipping the reconciliation. Compare the model's total with your accounts before you trust any breakdown.
Key points
- The data model holds several linked tables and breaks the one million row limit of a sheet.
- Build one fact table of events and lookup tables that describe things.
- Use DAX measures, not calculated columns, for totals and ratios.
- The model is the same idea as the one in Power BI.
Our Strategic Management programme shows you how to turn data like this into a decision, so you can see which products and shops make your profit and act on it yourself.
Questions people ask
- What is Power Pivot used for?
- Power Pivot is the Excel data model. It loads several tables, links them with relationships, handles more rows than a worksheet allows and lets you write DAX measures that pivot tables can use. It removes the need for long lookup columns.
- What is the difference between a measure and a calculated column?
- A calculated column stores a value in every row of a table and uses memory. A measure is calculated when needed, for whatever filters are active in the pivot table or report. Measures are usually faster and are the better choice for totals and ratios.
- How many rows can Excel handle?
- A single worksheet holds up to 1,048,576 rows. The data model can hold more rows than that across its tables, so it suits large sales or transaction files, within the limits of your computer's memory.