Fix Excel Data Model Relationships and Repeating PivotTable Values
Question details
The user needs to fix an issue where an Excel PivotTable built from multiple tables repeats the same value for every record, and closed work orders appear blank.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating a PivotTable using fields from multiple fact tables within the Excel Data Model.
- Observed behavior
- Every selected field value appears repeatedly on every record because the table relationships are not working correctly. Additionally, closed work orders may appear blank due to incomplete source data or relationship configurations.
Before modifying your Data Model, ensure that your source tables contain clear headers, have no entirely blank rows, and are properly formatted as Excel Tables.
Establish Many-to-One Relationships with a Dimension Table
Resolve repeating data values by connecting multiple fact tables through a central dimension table containing unique identifiers.
When PivotTables repeat values from every record or show grand totals for every row, it usually means the fact tables lack a valid relationship. The Data Model cannot filter data properly across tables without a bridging table. To fix this, you must create a dimension (lookup) table containing unique values.
Extract unique work-order numbers (or other shared identifiers) from all your fact tables. Paste them into a new worksheet, remove any duplicates to ensure each identifier is unique, and format this range as a new Excel Table.
Navigate to the 'Data' tab on the Excel ribbon and click 'Relationships', or open the Power Pivot window and select 'Diagram View'.
Create a relationship linking the work-order column from your first fact table to the unique work-order column in your new dimension table. Repeat this exact process for the second fact table, linking it to the same dimension table.
Insert a new PivotTable using the Data Model. When adding fields to your Rows or Columns areas, strictly select the shared fields (e.g., work-order numbers) from the dimension table, not from the fact tables.
Consolidate and Analyze Data Seamlessly in WPS Office
If you want to avoid complex Data Model relationship errors, WPS Spreadsheet offers an intuitive environment to consolidate data using powerful lookup functions before easily generating standard PivotTables.
- 1. Open Your Data Tables: Launch WPS Spreadsheet and open the workbook containing your separate data sources.
- 2. Merge with VLOOKUP/XLOOKUP: In your primary data table, create new columns and use the VLOOKUP or XLOOKUP function to pull in corresponding attributes from the other tables based on shared IDs.
- 3. Create a PivotTable: Highlight the newly consolidated dataset, go to the 'Insert' tab, and click 'PivotTable'.
- 4. Generate the Report: Drag your fields into the Rows, Columns, and Values areas. Since the data is in one flat table, you will not experience relationship-based repeating value errors.

Frequently Asked Questions
Why does every row in my PivotTable show the same grand total?
This happens when the PivotTable uses fields from multiple tables that lack a valid relationship. Without a correct relationship, Excel cannot filter the data for individual rows, so it simply returns the unfiltered grand total for every single item.
What is a dimension table in the Excel Data Model?
A dimension table, also known as a lookup table, contains unique records (no duplicates) for a specific entity, such as unique work-order numbers, product codes, or customer IDs. It acts as a bridge to connect multiple fact (data) tables together.
Can I create a direct many-to-many relationship in Excel?
Excel's standard Data Model does not natively support direct many-to-many relationships between two tables. You must resolve this by creating a third 'bridge' table (a dimension table containing only unique values) and setting up two separate many-to-one relationships.
How do I ensure blank values don't break my PivotTable?
Blank or missing identifiers in your source data can break relationships. Ensure that your dimension table contains a comprehensive list of all possible IDs, and clean your fact tables to remove or replace blank foreign keys before refreshing the Data Model.




