Power BI Table Not Summing Correctly: Fix Guide
In this article
When your Power BI table shows a total that doesn’t match the sum of individual rows—like a Sales column totaling $1,200 when the rows add up to $1,000—the issue is almost always due to how measures or column aggregations interact with the table visual’s default summarization. This guide helps you identify and correct the root cause using built-in Power BI tools and best practices.
What You'll Need
- A Power BI report open in Power BI Desktop or the Power BI service (app.powerbi.com)
- Access to the data model (fields pane visible)
- Basic understanding of columns vs. measures and how aggregations work in visuals
- The dataset file or connected data source (for reference)
Step-by-Step
- Identify the problematic column: In the table visual, look for a column where the total row value is clearly wrong—e.g., it shows 100 when the visible rows sum to 80. Hover over the total to see the aggregated value; compare it to manually summing the visible rows in Excel or with a calculator.
- Check if the column is a measure or a calculated column: In the Fields pane, expand the table and look for the column. If it has a calculator icon (Σ), it’s a measure (defined using DAX). If it has a sigma icon only on hover and no formula in the formula bar, it’s likely a regular column. Measures behave differently in totals: they recalculate over the entire context, not just sum the row values.
- Inspect the column’s summarization setting: Right-click the column in the Fields pane (or click the column and go to the column tools tab in the ribbon). Under Summarization, verify the aggregation method. For numeric columns used in totals, it should usually be Sum. If it’s set to Average, Count, or something else, change it to Sum. This controls the default total for that column in visuals.
- Review the measure’s DAX formula (if applicable): If the column is a measure, open the formula bar (View > Formula bar), select the measure, and examine the DAX. Common issues include:
- Using
SUM()on a non-additive column (e.g., quantities where inventory moves overlap) - Not handling context transitions properly (e.g., using
SUM()instead ofSUMX()for row-by-row calculations) - Lacking
ISINSCOPE()checks to return different values at detail vs. total levels
Sales Amount = [Price] * [Quantity]but [Price] and [Quantity] are columns, replace it withSales Amount = SUMX(TableName, TableName[Price] * TableName[Quantity])to ensure correct row-by-row multiplication before summing. - Using
- Test with a simple calculated column: In the data model, go to Modeling > New Column. Create a basic additive column using
Column Total = TableName[Value1] + TableName[Value2]and ensure the summarization is Sum. Add this new column to the table visual. If the total now matches, the original column or measure was the issue. - Use the Field Well to override summarization per visual: In the table visual, click the ellipsis (…) > Summarization. Here, you can set a custom aggregation for that specific visual—e.g., override the default to Sum even if the field is set to Average elsewhere. This is helpful for quick fixes without altering the model.
- Verify for blank or null values: In Power Query Editor (Transform Data), check for blanks, empty strings, or non-numeric text in numeric columns. Use
Table.SelectRowsor filters to confirm no rows haveNULLor text like “N/A” in the column being summed. Clean these in Power Query before loading.
Common Mistakes
- Using SUM on a non-additive measure: For example, summing a “Days in Stock” measure across dates—the total isn’t meaningful because days aren’t cumulative. Instead, use an average or a custom DAX logic.
- Ignoring context transition in measures: Writing
Measure = SUM(Sales[Amount])when you need row-level calculation (e.g., profit per line item). This causes totals to double-count or misaggregate. - Assuming totals always equal row sums: In DAX, totals are computed in the current filter context. A measure like
Revenue := SUMX(Sales, Sales[Price] * Sales[Quantity])may still break if filters or relationships cause re-evaluation. - Set summarization to “Don’t Summarize”: This hides the total entirely—easy to miss during setup. Check the field’s summarization setting again.
Tips
- Prefer calculated columns for additive, row-level values: If the calculation doesn’t change with filters (e.g., tax per item), use a calculated column instead of a measure. Totals will then behave predictably.
- Use SUMX for row-by-row operations: When multiplying or applying logic per row before summing, SUMX is safer than SUM.
- Enable “Show on rows” in matrix visuals: If using a matrix, turn on Values > Show on rows to see individual row values alongside totals—helps debug mismatches.
- Test totals with a simple table: Create a new table visual with only the problematic column and a unique identifier (like Order ID). If the total is still wrong, the issue is in the measure or column definition, not filters.
- Check relationships for unintended filtering: A soft relationship or inactive relationship might cause rows to be excluded from the total. Verify the relationship direction (single vs. both) in Model view.
Troubleshooting
If the total remains incorrect after following the steps:
- Check for filters applied to the visual: Click the visual, then the Filters pane. Look for filters on the table or page level that may exclude rows from the total but not the visible detail (e.g., a top-N filter or a slicer on another field).
- Test in a new report page: Create a blank page, drag only the table visual and the relevant table fields. If the total is correct here, a report-level filter or bookmark is interfering.
- Verify data types: In Power Query Editor, right-click the column > Data Type. Ensure it’s set to Decimal Number or Whole Number, not Text. Text columns sum as 0 or show as blank in totals.
- Check for duplicate rows or data duplication: In Power Query, use Remove Duplicates on key columns. If the data source has duplicates (e.g., from joins), the sum may be inflated. Add a unique index column to detect this.
- Refresh and reapply transformations: Click Home > Close & Apply, then Refresh the report. Sometimes, unapplied changes in Power Query cause stale values.
- Export to Excel for validation: Right-click the table visual > Export data > Summarized. Open the CSV and use Excel’s
SUBTOTAL(9, range)to compare. If Excel confirms the Power BI total is wrong, the issue is in the model or DAX.
Frequently Asked Questions
Why does my Power BI table total show a number that doesn’t match the sum of visible rows?
Most often, the column is a measure, not a column, and its DAX formula recalculates over the entire table context—not just the displayed rows. Measures like AVERAGE or COUNT will never sum to the row-level total. Check the field type and DAX logic.
Can I force a table visual to sum a column exactly like Excel?
Yes. Right-click the column in the visual’s field well > Summarization > Sum. If it’s a measure, rewrite the DAX to use SUMX() or add an IF(ISINSCOPE(...)) condition to return the sum at detail level and total separately.
Is it normal for totals in Power BI to differ from row sums?
Only for non-additive measures (e.g., averages, ratios, distinct counts). For additive values like sales or costs, totals should always equal row sums. If not, there’s a data or modeling issue to fix.
What if my column is set to Sum but the total is still wrong?
Check for blanks or text values in the column (use Power Query to filter for non-numbers). Also verify the column isn’t filtered in the visual but not in the data model—use the Filters pane and the visual-level filters dropdown to confirm.
How do I know if a field is a measure or a calculated column?
In the Fields pane, measures show a calculator icon (Σ) next to the name and appear under a separate “Measures” group. Calculated columns appear under their table and show no icon on hover—only on selection in the formula bar.
Can relationships cause incorrect totals?
Yes. If a relationship is set to “Single” direction and filters don’t flow to the fact table, rows may be excluded from the total. In Model view, select the relationship, check the Cardinality and Cross-filter direction—use “Both” for many-to-many or when filtering must flow bidirectionally.