Pivot Table Issues

How to Use Power Pivot Relationships to Link Multiple Excel Tables

Camila MilosovichCamila Milosovich Nov 13, 2026 868 views

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.

How to Use Power Pivot Relationships to Link Multiple Excel Tables
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Power Pivot Data Model

In Excel, go to the Power Pivot tab and click Manage Data Model to open the Power Pivot window.

2
Create the measure

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.

3
Add fields to the PivotTable

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.

4
Verify the result

Confirm that the PivotTable now returns only the options and components associated with each model instead of incorrect cross-table combinations.

Create a DAX measure that filters the components table through the mapping table
Recommended fix: The TREATAS-based measure applies the mapping as a virtual relationship and resolves incorrect cross-table combinations.
Free Microsoft Office alternative

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. 1. Download WPS Office: Go to the official WPS Office website and download WPS Office Free, then install it on your device.
  2. 2. Open the Excel workbook: Launch WPS Spreadsheets and open the .xlsx workbook that contains the tables you want to analyze.
  3. 3. Create a PivotTable: Select the data range, click Insert > PivotTable, and configure rows, columns, and values for daily pivot analysis without Power Pivot.
Free to download and use for everyday PivotTable and spreadsheet tasksOpens and saves .xlsx, .xls, and other Microsoft Excel-compatible filesFamiliar Office-style ribbon interface for easy migrationLightweight and fast without Power Pivot add-in complexity
microsoft office alternative - wps office

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.