Power Pivot is a fantastic tool for building advanced Excel reports. We can create relationships between multiple tables, write calculations using DAX, and bring everything together in an interactive PivotTable.
But getting that model right takes time. And once it is ready, we hit a problem: the Power Pivot data model is bound to its workbook. Another Excel workbook cannot simply connect to it and reuse the same model.
The solution is to move the model into a central location. By importing our existing Power Pivot model into Power BI and publishing it to the Power BI service, we can connect multiple Excel workbooks to one shared source of data and calculations.
We still build our reports in Excel. Power BI provides the model behind them.
What You'll Learn
- Copying a Power Pivot report creates a separate model rather than a shared connection.
- Importing and publishing the model to Power BI lets multiple Excel workbooks reuse it.
- Excel can create PivotTables and connected tables from the same published Power BI model.
- A connected heading-and-style table can drive conditional formatting as report layouts change.
Table of Contents
- Why copying a Power Pivot report creates a problem
- Import the Power Pivot model into Power BI
- Connect a new Excel PivotTable to Power BI
- Rebuild the Excel report using the shared model
- Apply conditional formatting using a connected layout table
- Test the report and refresh from one central model
Why copying a Power Pivot report creates a problem
Our starting workbook contains a financial report built with Power Pivot. A month slicer changes the reporting period, and a report filter switches between a profit and loss account and a balance sheet.
To inspect the model behind a report like this, select Data > Data Model > Manage Data Model, then switch to Diagram View in Power Pivot. This shows the tables and relationships underpinning the PivotTable.
Now, suppose we want to use that report in another workbook. The obvious approach is to right-click the worksheet tab, select Move or Copy, choose a new workbook, and select Create a copy.
The report appears in the new workbook, but it has not retained a connection to the original model. Instead, Excel has copied the model too.
- The new workbook has its own queries and connections.
- The copy operation can also introduce duplicated tables or queries.
- The Power Pivot model is now a separate instance, disconnected from the original.
That leaves us with separate models to maintain. What we really want is one model that supports multiple Excel reports, rather than a new model every time we copy a workbook.
Import the Power Pivot model into Power BI
We do not need to rebuild the model from scratch. Power BI Desktop can import the useful content from our existing Excel workbook.
- Close the source Excel workbook and open a blank report in Power BI Desktop.
- Select File > Import.
- Choose Power Query, Power Pivot, Power View.
- Browse to the Excel workbook containing the Power Pivot model, select it, and click Open.
- In the import dialog, click Start.
- When the import finishes, click Close.
The import dialog explains an important distinction: Power BI is extracting content from the workbook, not working directly inside the Excel file.
Once the import is complete, the tables appear in Power BI. Open Model view to inspect the imported tables and relationships.
This is an import, not a live link back to the original Power Pivot workbook. If we need to bring the workbook into Power BI again, we can repeat the import process. Doing so replaces the imported content currently in the Power BI file, so treat that as a deliberate replacement step rather than an ordinary data refresh.
Save and publish the model
Before publishing, save the Power BI file:
- Select File > Save As.
- Choose a location and a descriptive name. For this example, I use 0330 Excel plus Power BI.
- Click Save.
- Select Publish on the ribbon and save any pending changes if prompted.
- Choose the destination workspace. In this example, I use the Example workspace.
- Click Select and wait for the success confirmation.
The model is now available in the Power BI service. We are not trying to replace our Excel reports with Power BI report pages here. We are using Power BI as the single source of truth that our Excel workbooks will connect to.
Connect a new Excel PivotTable to Power BI
Open a new, blank Excel workbook. There is no need to copy the original reporting sheet or bring its Power Pivot model with it.
- Go to Insert.
- Open the PivotTable dropdown and select From Power BI.
- In the Power BI pane, search for the published model. Searching for Excel finds the model in this example.
- On the matching model, select Insert PivotTable.
- Select the appropriate account if Excel asks you to sign in.
Excel creates a PivotTable connected to the model in the Power BI service. We can now build a report using the fields and calculations available there.
If you need supporting information about connecting Excel to Power BI, Microsoft documents the connection options and requirements in its guide to building Excel workbooks with Power BI data.
Rebuild the Excel report using the shared model
The fields used below are specific to this financial reporting model. Your model will have different tables, fields, and measures.
The important point is that the calculations and fields we want to reuse must exist in the shared model. In this example, they already exist in the original Power Pivot model and have been brought into Power BI through the import.
Arrange the PivotTable fields
To recreate the financial report, add the fields as follows:
- Values: Primary, Comparative, and Primary versus Comparative.
- Rows: Heading from the Layout table.
- Filters: Comparative, Report, and Primary.
The value fields provide the calculations. The filter fields control which report and comparison those calculations display.
Next, add a reporting-period slicer:
- Select a cell inside the PivotTable.
- Choose Insert Slicer.
- Select End of Month and click OK.
- Select December 2022 in the slicer.
Set the report filters to display a Profit and Loss account, with Actual as the primary value and Budget as the comparative value.
Adjust the layout and number formats
Right-click inside the PivotTable and select PivotTable Options. Make these changes:
- On Layout & Format, clear Autofit column widths on update.
- On Totals & Filters, turn off grand totals for both rows and columns.
- On Display, select Show items with no data on rows.
Click OK, then rename the displayed value headings:
- Primary becomes Actual.
- Comparative becomes Budget.
- Primary versus Comparative becomes Variance.
Finally, apply the required number formats to each value field.
That gives us the report values and layout. The remaining task is the row formatting, such as bold text and borders for totals.
Apply conditional formatting using a connected layout table
The original model includes a Layout table that identifies how each heading should be styled. Because that table was imported with the rest of the model, it is also available in Power BI.
We can bring the relevant columns into Excel as a connected table, then use them to drive conditional formatting.
Insert the heading and style columns
- Open the Power BI pane in Excel.
- Find the shared model and select Insert Table.
- Expand the Layout table.
- Select the Heading and Style columns.
- Click Insert Table.
Excel inserts a table containing those values from Power BI. Each heading has an associated style value, allowing us to identify the rows that should receive total formatting.
For clarity in the formula below, name this inserted Excel table StyleLookup. If you keep a different table name, use that name in the formula instead.
Format the PivotTable values
First, apply formatting to the numeric values in the PivotTable.
- Select the PivotTable value area.
- Go to Home > Conditional Formatting > New Rule.
- Use the PivotTable field scope at the top of the dialog so the rule applies to the relevant value fields, rather than only the currently selected cells.
- Select Use a formula to determine which cells to format.
In this report, the row headings are in column A and the first data row is row 6. Use this formula:
=XLOOKUP($A6,StyleLookup[Heading],StyleLookup[Style])="Total"
The formula looks up the heading for the current report row, returns its style, and checks whether that style is Total.
$Afixes the heading column, so every value column uses the same row heading.6remains relative, so the rule checks the appropriate heading as it moves down the report.StyleLookup[Heading]supplies the headings to search.StyleLookup[Style]supplies the corresponding styles.
Adjust $A6 if your report starts in a different position. You can also build the lookup references by selecting the Heading and Style columns in the connected table.
Click Format, set the font to Bold, and add top and bottom borders. Confirm both dialogs.
The field-level scope matters. It allows the value formatting to follow the PivotTable as its rows or columns change.
Format the row headings separately
The row labels need their own rule. Here, the conditional formatting applies to ordinary worksheet cells rather than the PivotTable value fields.
- Select the row-heading cells in column A, extending the selection beyond the largest area the PivotTable is expected to occupy.
- Select Conditional Formatting > New Rule.
- Choose Use a formula to determine which cells to format.
- Enter the same XLOOKUP formula, matching its row reference to the first row of the selected range.
- Apply Bold font and top and bottom borders.
- Click OK to confirm.
The PivotTable-specific scope options are absent for this selection. That is expected: this rule belongs to the selected cells.
Selecting a range larger than the current report leaves room for additional row headings when we switch to a longer report.
Test the report and refresh from one central model
Change the Report filter from Profit and Loss to Balance Sheet. The PivotTable expands to show the relevant headings, and the conditional formatting identifies the total rows in the new layout.
Select a different month in the slicer. The values recalculate using the data available in the model stored in the Power BI service.
That is the key change: the model behind this report lives outside the workbook. When the published model's data updates, refresh Excel to retrieve the latest results. Other connected workbooks can use that same central model without maintaining their own separate Power Pivot copies.
Hosting the model in the Power BI service also makes additional capabilities available:
- Row-level security: when configured, it controls which data each person is allowed to access.
- Scheduled refresh: when configured, it keeps the shared model's data up to date automatically.
We keep Excel for building and interacting with our reports, while Power BI supplies the shared data and calculation layer. One central model, multiple Excel workbooks, and no need to create another isolated model every time we need a new report.


