How to Use Power Pivot Relationships to Link Multiple Excel Tables
Question details
Create a Power Pivot PivotTable that correctly links multiple Excel tables so model, option, and component fields show only associated records instead of incorrect combinations.

- Product
- Microsoft Excel with Power Pivot add-in
- Device & OS
- not provided
- Scenario
- A user is building a PivotTable from related mapping tables in the Excel Data Model and needs aggregation to filter the components associated with each model.
- Observed behavior
- Without an appropriate measure or virtual relationship, the PivotTable displays incorrect combinations of model, option, and component values.
Enable the Power Pivot add-in in Excel and open the workbook that contains the model, option, component, and mapping tables as separate sheets or Excel Tables.
Create a DAX measure that filters the components table through the mapping table
Use this when the PivotTable shows all possible combinations; the measure applies a virtual relationship and returns only matching rows.
A mapping table often sits between lookup tables, and a regular relationship path may not filter across it. A CALCULATE and TREATAS measure makes Power Pivot apply the mapping as a virtual relationship so aggregations respect the model-option-component association.
In Excel, go to the Power Pivot tab and click Manage Data Model to open the Power Pivot window.
Select the Components table in the Power Pivot window, click Measures > New Measure, and enter a measure similar to: Associated Components:=CALCULATE(COUNTROWS(Components), TREATAS(VALUES(Mapping[ComponentID]), Components[ComponentID])). Adjust table and column names to match the workbook.
Click PivotTable on the Power Pivot tab, choose New Worksheet, and place Model, Option, and Component fields in the Rows area and the new measure in the Values area.
Confirm that the PivotTable now returns only the options and components associated with each model instead of incorrect cross-table combinations.

Create explicit one-to-many relationships in the Data Model before adding fields
Use this first if the tables are not connected, because Power Pivot needs a valid relationship path before aggregation can work correctly.
Use WPS Spreadsheets as a Free Microsoft Office Alternative for PivotTable Work
WPS Office does not include the Power Pivot add-in or DAX Data Model. However, WPS Spreadsheets opens Excel .xlsx workbooks, supports PivotTables, and offers a familiar ribbon interface as a lightweight, free alternative for everyday spreadsheet pivot work.
- 1. Download WPS Office: Go to the official WPS Office website and download WPS Office Free, then install it on your device.
- 2. Open the Excel workbook: Launch WPS Spreadsheets and open the .xlsx workbook that contains the tables you want to analyze.
- 3. Create a PivotTable: Select the data range, click Insert > PivotTable, and configure rows, columns, and values for daily pivot analysis without Power Pivot.

Frequently Asked Questions
Why does my Power Pivot PivotTable show incorrect combinations of model and component?
Usually a mapping table is not filtering correctly across the relationship path. Add a measure using CALCULATE(COUNTROWS(Components), TREATAS(VALUES(Mapping[ComponentID]), Components[ComponentID])) and place it in the Values area so only matching rows are returned.
Does WPS Office support Power Pivot and the Excel Data Model?
No, WPS Office does not include the Power Pivot add-in or DAX measures. You can open .xlsx workbooks and create PivotTables in WPS Spreadsheets, but Power Pivot-specific Data Model relationships require Microsoft Excel.
What type of relationship should I create in Power Pivot?
Use one-to-many relationships from lookup tables to the mapping table and from the mapping table to the component table, typically in Diagram View by dragging the primary key to the foreign key.
Can TREATAS create a virtual relationship instead of a physical one?
Yes. In a DAX measure, TREATAS can apply the mapping table filter to the target table when a physical relationship is not available or does not produce the correct aggregation.
What should I do if I don't have Power Pivot in Excel?
Enable the Power Pivot add-in under File > Options > Add-ins > COM Add-ins, or use WPS Spreadsheets for daily PivotTable work if you do not need DAX Data Model relationships.




