Fix Power Pivot SUM Measure Returning Incorrect Values in Excel
Question details
The user is experiencing an issue where a Power Pivot measure intended to calculate totals duplicates values instead of returning the correct sum.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating or updating a Power Pivot SUM measure to calculate totals across multiple columns or related tables.
- Observed behavior
- The measure reproduces the original values from the columns instead of summing them, and making updates triggers errors related to deleted worksheet columns.
Ensure that your data model is free of broken references by verifying that no columns have been deleted or renamed in the source worksheet without updating the Power Pivot window.
Use the SUMX Function with Proper Syntax
SUMX evaluates expressions row by row, which is essential when performing mathematical operations like addition or subtraction across related tables.
When adding values from two different tables, a standard SUM function or basic implicit measure may fail or duplicate values because it lacks the necessary row context. By using SUMX, you force the DAX engine to calculate the math for each row before aggregating the final total.
Click on the Power Pivot tab in your Excel ribbon and select 'Manage' to open the Data Model window.
Navigate to the table where you want to store the new measure. Click an empty cell in the Calculation Area at the bottom.
Type the formula using the correct iterator syntax. For example: =SUMX('Table1', 'Table1'[Total Salary] + RELATED('Table2'[Total Non-salary])).
Press Enter to calculate the measure. Ensure that the Pivot Table now displays the correct combined sum instead of duplicated values.

Resolve Data Model and Deleted Column Errors
Background errors in the data model, such as lingering references to deleted worksheet columns, can prevent measures from calculating accurately.
Analyze Spreadsheet Data Easily with WPS Office
While Power Pivot and DAX are specific to Microsoft Excel, WPS Office provides a lightweight, highly compatible, and free alternative for comprehensive data analysis. With WPS Spreadsheet, you can build powerful standard Pivot Tables and utilize advanced built-in functions without dealing with complex data model errors.
- 1. Download and Install: Visit the WPS Office website to download the free suite and install it on your computer.
- 2. Open your Spreadsheet: Launch WPS Spreadsheet and seamlessly open your existing .xlsx files.
- 3. Create Pivot Tables: Go to the Insert tab and click Pivot Table to easily summarize your data using the intuitive interface.

Frequently Asked Questions
Why does my Power Pivot measure reproduce values instead of adding them?
This typically occurs when there is no row context in your DAX formula, or the relationship between the two tables is missing. Using an iterator function like SUMX forces the engine to evaluate the mathematical operation row by row before summarizing.
How do I correctly use the RELATED function in DAX?
The RELATED function pulls a value from another table that shares an active relationship with the current table. It must be placed inside a row-context function, such as SUMX, or used within a calculated column to function properly.
What causes errors when updating a Power Pivot data model?
If a column was deleted or renamed directly in the source Excel worksheet, the Power Pivot data model may retain the old reference, causing a mismatch. You must manually delete or update the missing column inside the Power Pivot window.
Are implicit measures bad in Power Pivot?
While convenient, implicit measures (created simply by dragging fields into the values area) lack flexibility and can sometimes cause calculation anomalies in complex data models. Writing explicit measures using DAX is generally recommended for better control and accuracy.




