Power Pivot in Excel: enable it, relate your tables and write your first DAX measures

Published · Updated · 13 min read

Dylan Arnaud, founder of Datafuji

Power Pivot is the Excel for Windows add-in that relates several tables in a data model and calculates metrics on them in DAX, beyond the million-row limit of a worksheet.

You enable it once and for all under File › Options › Add-ins. Data reaches it after going through Power Query, which imports and cleans it.

What is Power Pivot?

Power Pivot is Excel’s data modeling technology: it stores several tables in one model, relates them through shared columns and calculates measures that PivotTables read.

An Excel worksheet holds one long list. To cross sales with a customer file and a product file, you then copy columns across with VLOOKUP, row by row. Power Pivot works differently: each table stays whole, and a relationship states how they match.

It has three parts:

  • The data model, stored in the workbook and compressed in memory. This is what goes beyond the 1,048,576 rows of a worksheet.
  • Relationships between tables, for example between the Customer column of sales and the customer table.
  • Measures, named formulas written in DAX (Data Analysis Expressions), the model’s calculation language.

It sits between two neighboring tools, which the chart puts in order: Power Query upstream, the PivotTable downstream.

Three-step diagram, left to right. 1, Power Query: import and clean files, exports and databases. 2, in blue, Power Pivot: relate the tables in the data model and calculate measures in DAX. 3, the PivotTable: display the measures by month, customer or product. Under steps 2 and 3, a band notes that Power BI Desktop uses the same engine and the same DAX language.Three-step diagram, left to right. 1, Power Query: import and clean files, exports and databases. 2, in blue, Power Pivot: relate the tables in the data model and calculate measures in DAX. 3, the PivotTable: display the measures by month, customer or product. Under steps 2 and 3, a band notes that Power BI Desktop uses the same engine and the same DAX language.
Power Query prepares, Power Pivot relates and calculates, the PivotTable displays; Power BI takes over the last two steps.

Microsoft states that this model uses the same technology as Power BI. A Power Pivot workbook is therefore the best preparation for a Power BI data model: tables, relationships and measures carry over as they are.

How do I get to Power Pivot in Excel?

Power Pivot is installed with Excel for Windows but turned off by default: you enable it once among the COM add-ins, and the Power Pivot tab then stays on the ribbon.

  1. Open File › Options › Add-ins.
  2. At the bottom, in the Manage box, choose COM Add-ins, then click Go.
  3. Check the Power Pivot add-in (its label varies by version, for example “Microsoft Power Pivot for Excel”), then click OK.

The Power Pivot tab appears. Its Manage button opens the model window, with two views: Data View, which shows each table, and Diagram View, which shows the relationships.

Which Excel versions include it

As of December 2, 2026, Microsoft’s Power Pivot page applies to Excel for Microsoft 365, Excel 2024, 2021, 2019 and 2016. What you have depends mostly on how Excel was bought:

ExcelPower PivotNote
Microsoft 365 on Windows (subscription)YesOpen to every subscription since 2018, consumer plans included
Excel 2019, 2021, 2024 on WindowsYesAdd-in to enable
Excel 2013 and 2016, perpetual licenseDepends on the editionThe 2018 expansion was not carried back to these versions
Excel for MacNoNot available, per Microsoft; only Power Query exists there, with fewer features

On a Mac, going through Windows remains the only route, as for Power BI Desktop: our guide to Power BI on Mac compares the options.

Why does my Excel not have Power Pivot?

Three causes cover almost every case:

  • The add-in is not checked. It never is by default: follow the three steps above.
  • Excel disabled it. After a crash with the Power Pivot window open, Excel can set it aside. In File › Options › Add-ins, choose Disabled Items in the Manage box, select Power Pivot and click Enable.
  • Your version does not have it. Excel for Mac, or Excel 2013 or 2016 bought in an edition without the add-in.

If the add-in is still missing after being re-enabled, Microsoft describes a fix in the Windows registry, best left to your IT team.

How do you build a data model with Power Pivot?

A model takes four steps: load each table into the model, add a calendar, relate the tables through their keys, then build the PivotTable on the model.

Take the example SME, a fictional French distribution and services company with €23,500k in annual revenue excluding VAT. Suppose it issues 350,000 invoice lines a year. Three years of history no longer fit on a worksheet:

Rows 2024-2026  = 3 × 350,000
                = 1,050,000
Worksheet limit = 1,048,576
Overflow        = 1,424 rows

In the data model, the same table takes a fraction of its raw size, and the limit is close to 2 billion rows per table.

1. Load the tables into the model

Each source becomes a model table, without going through a worksheet:

  • From Power Query, the recommended route: Home › Close & Load To…, choose “Only Create Connection” and check “Add this data to the Data Model”.
  • From a table on the sheet: click inside it, then Power Pivot › Add to Data Model.

The company loads three tables this way: Sales (one row per invoice line: date, customer number, product code, amount excluding VAT, margin), Customers (one row per customer) and Products (one row per code, with its product family).

2. Add a calendar

Period calculations (months, year-to-date, prior year) need a complete date table: one day per row, with no gaps, from January 1, 2024 to December 31, 2026, that is 366 + 365 + 365 = 1,096 days. Create it in Power Query or on a sheet, load it into the model, then in the Power Pivot window, on the Design tab, click Mark as Date Table.

3. Relate the tables

In Home › Diagram View, drag the Sales column onto the matching column of the other table. The chart shows the result: a star schema.

Star schema of the example SME’s model. In the center, in blue, the Sales table: 1,050,000 invoice lines from 2024 to 2026, with date, customer number, product code, amount excluding VAT and margin. Three tables surround it, each related by a line marked 1 on its side and * on the sales side: Customers (customer number, name, industry), Products (product code, family) and Calendar (1,096 days, from January 1, 2024 to December 31, 2026).Star schema of the example SME’s model. In the center, in blue, the Sales table: 1,050,000 invoice lines from 2024 to 2026, with date, customer number, product code, amount excluding VAT and margin. Three tables surround it, each related by a line marked 1 on its side and * on the sales side: Customers (customer number, name, industry), Products (product code, family) and Calendar (1,096 days, from January 1, 2024 to December 31, 2026).
Each lookup table is related to sales once, from the “1” side to the “*” side: nothing is copied.

The “1” marks the unique column (a customer appears once in Customers), the asterisk the column that repeats (a customer has thousands of sales lines). Excel rejects a relationship when both columns contain duplicates. The model’s shape and rules are covered in our star schema guide.

4. Build the PivotTable on the model

Home › PivotTable, in the Power Pivot window. The field list shows all four tables: product family from Products in Rows, months from Calendar in Columns, a measure in Values. Handling the PivotTable itself is explained in our PivotTable guide.

How do you write DAX measures in Power Pivot?

A measure is written in Power Pivot › Measures › New Measure, or in the calculation area under a table: a named DAX formula, recalculated for every cell of the PivotTable.

The company’s first three measures:

Revenue :=
SUM ( Sales[Amount] )

Gross Margin :=
SUM ( Sales[Margin] )

Margin % :=
DIVIDE ( [Gross Margin], [Revenue] )

For September, the PivotTable shows €2,050k of revenue, €790k of gross margin and a rate of 38.5% (790 ÷ 2,050). DIVIDE leaves the cell blank when revenue is zero, instead of an error. In the dialog box, you only type what follows the equals sign.

Comparing with the prior year

Once the calendar is marked and related, one measure is enough for the prior year:

Revenue PY :=
CALCULATE (
    [Revenue],
    SAMEPERIODLASTYEAR (
        Calendar[Date]
    )
)

SAMEPERIODLASTYEAR takes the dates of the cell (September 2026) and returns the same dates one year earlier; CALCULATE evaluates [Revenue] on those dates. The function reads the calendar column, not the sales date, which has gaps. Other period calculations are explained in our DAX for Power BI guide, which applies unchanged in Excel.

Measure or calculated column

Power Pivot also offers calculated columns, added to a table and calculated row by row at each refresh. They are for grouping or filtering (an amount band, a label), not for calculating a metric. A rate in a column, then “Average” in the PivotTable, gives every row the same weight, whatever its amount. The same mistake shows with just two product families: the chart averages their rates, on an assumed split of the company’s figures.

Two calculations of the example SME’s September margin rate. Data: distribution, €1,600k of revenue and €520k of margin, or 32.5%; services, €450k and €270k, or 60.0%. On the left, in orange, wrong: the average of the two rates, (32.5 + 60.0) ÷ 2 = 46.3%. On the right, in green, right: the measure DIVIDE ( [Gross Margin], [Revenue] ), which divides the totals, 790 ÷ 2,050 = 38.5%. Averaging the rates overstates the margin by 7.7 points.Two calculations of the example SME’s September margin rate. Data: distribution, €1,600k of revenue and €520k of margin, or 32.5%; services, €450k and €270k, or 60.0%. On the left, in orange, wrong: the average of the two rates, (32.5 + 60.0) ÷ 2 = 46.3%. On the right, in green, right: the measure DIVIDE ( [Gross Margin], [Revenue] ), which divides the totals, 790 ÷ 2,050 = 38.5%. Averaging the rates overstates the margin by 7.7 points.
The average of the rates gives 46.3%, the measure 38.5%: a rate is recalculated from the totals, not averaged.

The measure recalculates the rate on each cell’s totals: 38.5% overall, 32.5% and 60.0% by family. The average of the rates ignores that distribution weighs €1,600k and services €450k.

Which mistakes should you avoid with Power Pivot?

The costliest mistakes come from spreadsheet habits carried into the model: copying instead of relating, and calculating in columns instead of measures.

  • Keeping VLOOKUP. A column copied into sales weighs down the model and drifts from its source; the relationship does the same job without a copy.
  • Dragging a field into Values. The PivotTable then creates an implicit measure (sum, count, average) that no other measure can reuse. Write an explicit, named measure.
  • Putting calculations in columns. Each calculated column takes memory on every row; on 1,050,000 rows, you feel it each time the file opens.
  • Forgetting the calendar. Without a complete, marked date table, functions such as SAMEPERIODLASTYEAR return wrong or blank results.
  • Importing unused columns. Every column costs memory. Remove technical IDs and long text nobody analyzes in Power Query.

The same model will later serve Power BI: a mistake fixed in Excel will not need fixing a second time.

What are the limits of Power Pivot?

The model accepts nearly 2 billion rows per table, but the real limit is the computer’s memory in 64-bit Excel, and a few hundred megabytes in 32-bit Excel.

The values published by Microsoft:

LimitPublished valueWhat it changes
Rows in a model table1,999,999,997Out of reach for an SME; memory gives out long before
32-bit Excel2 GB of address space, of which 500 to 700 MB for the modelSwitch to 64-bit Excel before the model grows
64-bit ExcelNo hard limit: the computer’s memory and resourcesSize depends mostly on the number of distinct values in each column
Workbook in Excel for the web (Microsoft 365)250 MB in totalBeyond that, the workbook no longer opens in the browser
Table or column name100 charactersNo practical effect

The other limits are not technical. A workbook is shared by sending copies, every reader sees every row, and refreshing requires Excel to be open on a computer. These three points usually decide the move from Excel to Power BI.

Power Pivot vs Power Query vs Power BI: what is the difference?

Power Query prepares the data, Power Pivot relates and calculates it inside Excel, and Power BI does both, adding publishing, sharing and refresh without a computer switched on.

CriterionPower QueryPower PivotPower BI
RoleImport, clean, combineRelate tables, calculatePrepare, model, publish
WhereExcel (Data tab), Power BIExcel for WindowsPower BI Desktop (Windows) and the online service
LanguageM, often without writing itDAXM and DAX
OutputA clean tableA model read by PivotTablesA shared interactive report
RefreshRefresh buttonRefresh button, Excel openScheduled, up to 8 times a day with a Pro license
PriceIncluded in ExcelIncluded in ExcelDesktop free, sharing with a paid license

The three follow one another more than they compete. In Excel, Power Query feeds Power Pivot; in Power BI Desktop, the same two engines live in a single file. How Power Query works is covered in our Power Query guide, and the full tool in our overview of Power BI.

When should you move from Power Pivot to Power BI?

Move to Power BI when the model must be read by others, refresh on its own or show each reader only their rows; the Power Pivot workbook then imports without starting over.

Four signs tell you:

  • Several readers get a copy of the workbook each month, and nobody knows which one is current.
  • Refresh depends on one person opening Excel in the morning.
  • Each sales rep should see only their territory. Power BI filters rows by reader; Excel needs one file per person.
  • The workbook exceeds the 250 MB of Excel for the web, or slows down every time it opens.

Importing the workbook into Power BI Desktop

In Power BI Desktop, which is free, open File › Import › Power Query, Power Pivot, Power View, then choose the workbook. The import is done once: the resulting Power BI file no longer depends on the workbook.

Workbook itemIn Power BI Desktop
Power Query queriesCarried over, with their groups
Relationships, measures, calculated columns, KPIsConverted as they are
Tables linked to a sheetCopied once, or kept connected to the workbook
HierarchiesNot carried over, to be recreated
Binary columns (images)Removed

PivotTables and charts on the sheet do not carry over: they are rebuilt as visuals, on the same measures. Sharing then requires a license per reader, whose cost is worked out in our page on Power BI pricing.

Frequently asked questions

Where is Power Query in Excel?

On the Data tab, in the Get & Transform Data group: Get Data opens the connectors, and Launch Power Query Editor opens the editor. Power Query has been built into Excel for Windows since Excel 2016, with no add-in to enable, unlike Power Pivot.

What is the difference between a PivotTable and Power Pivot?

A PivotTable displays and summarizes data. Power Pivot prepares what it reads: several related tables and measures written in DAX. A classic PivotTable reads a single range on the sheet; connected to the Power Pivot model, it crosses all the related tables.

Is Power Pivot free?

Yes, it is included in Excel for Windows at no extra cost: you only need to enable it among the COM add-ins. You do need an Excel version that includes it, such as Excel for Microsoft 365 or Excel 2019 and later. Power BI Desktop, which uses the same engine, is also free.

Is Power Pivot available on Mac?

No. Microsoft says so on its activation page: Power Pivot isn’t currently available on Excel for Mac, nor in Excel for the web. The Mac only has Power Query, with fewer features. The workaround is to go through Windows (a virtual machine, Windows 365) or build the model in Power BI.

Should I learn Power Pivot or Power BI?

They are learned together: same engine, same relationships, same DAX language. Someone who can build a model in Power Pivot rebuilds it in Power BI Desktop mostly by switching screens. Start with the one you already have; Power BI takes over as soon as the model must be shared.

Let’s talk about your reporting.

A 30-minute video call with Dylan Arnaud. You come away with a clear scope and a fixed price.

Dylan Arnaud, Power BI consultant and founder of Datafuji
Dylan ArnaudFounder · your single point of contact