Others

Fix Incorrect Power BI Totals for Monthly Measures

Steve KSteve K Nov 13, 2026 869 views

Question details

The user needs to understand why a Power BI total row does not equal the sum of the displayed monthly Forecast values and how to force totals to aggregate month-by-month.

Fix Incorrect Power BI Totals for Monthly Measures
Product
Microsoft Power BI
Device & OS
not provided
Scenario
A Power BI report has a monthly Forecast measure that displays correct values for each month, but the grand total is incorrect.
Observed behavior
The DAX measure is recalculated in the total filter context, so the total does not automatically add the values shown for each month.
Before you start

Open your Power BI Desktop report and verify that the date table, the Forecast measure, and the underlying Pre_Forecast measure are available before editing the DAX formula.

Solution 1Recommended

Create a DAX Measure That Forces the Total to Sum Monthly Forecast Values

Use this solution when each month is correct and the total row must equal the visible sum of the monthly Forecast values.

A DAX measure does not automatically add the values already displayed for each month. In the total row, the same measure is evaluated without a single month selected, so the monthly branch must be wrapped in an explicit sum over the month values.

1
Create a new measure

In Power BI Desktop, go to the Modeling tab and select New measure.

2
Enter the monthly total DAX formula

Use a formula such as Forecast = IF(HASONEVALUE('Calendar_'[Month]), CALCULATE(SUMX(VALUES(Points[DBName-Point_Id]), [Pre_Forecast])), SUMX(VALUES('Calendar_'[Month]), CALCULATE(SUMX(VALUES(Points[DBName-Point_Id]), [Pre_Forecast])))).

3
Apply and test the total

Commit the measure, add it to the table or matrix, and confirm that the total row now equals the sum of the monthly Forecast values.

Create a DAX Measure That Forces the Total to Sum Monthly Forecast Values
Total now matches the monthly sum: The measure branches between the monthly filter context and the total context, so the grand total explicitly sums the monthly calculations.
Free Microsoft Office alternative

Prepare Power BI Source Data in a Free, Lightweight Office Suite

Power BI DAX totals must be corrected inside Microsoft Power BI, so WPS Office does not change the calculation. For everyday spreadsheet work, WPS Office is a free and lightweight alternative that opens and saves Excel workbooks with a familiar Office-like interface, making it easier to manage the source data behind your Power BI reports.

  1. 1. Download WPS Office: Visit the WPS Office download page and install WPS Office on your Windows or Mac computer.
  2. 2. Open the Excel source file: Launch WPS Spreadsheets, click Open, and select the .xlsx workbook you use as Power BI source data.
  3. 3. Edit and save as .xlsx: Make your edits in the familiar spreadsheet interface, then save the file as .xlsx to keep full Excel compatibility.
Free tools for cleaning and preparing Power BI source spreadsheets without extra cost.Opens and saves .xlsx Excel workbooks with high compatibility.Familiar tabbed interface reduces the learning curve when moving between WPS and Microsoft Excel.Lightweight performance for everyday data editing and review.
QA img-9

Frequently Asked Questions

Why does my Power BI total not equal the sum of the monthly Forecast values?

A DAX measure is evaluated in the total filter context rather than adding the rows already shown. To make the total equal the monthly sum, use a measure that explicitly sums the monthly calculation with SUMX over the month values.

How can I force the grand total to sum the monthly Forecast measure?

Create a measure like Forecast = IF(HASONEVALUE('Calendar_'[Month]), CALCULATE(SUMX(VALUES(Points[DBName-Point_Id]), [Pre_Forecast])), SUMX(VALUES('Calendar_'[Month]), CALCULATE(SUMX(VALUES(Points[DBName-Point_Id]), [Pre_Forecast])))) and test it in a matrix or table.

Does changing the visual aggregation to Sum fix a DAX measure total?

No. Visual aggregation settings do not control DAX measure totals the way they do for numeric columns. You need to change the measure logic so the total branch sums the monthly values.

Why does MAX(Date) across a year return the wrong number of days?

MAX(Date) returns the latest date in the current context. When you calculate days between adjacent month-end dates, the result is the number of days in the latest month, not the total days in the year.

Can WPS Office fix Power BI total calculation errors?

No. Power BI DAX totals must be corrected inside Microsoft Power BI. WPS Office can help you edit and prepare the Excel source data used by Power BI, but it does not change Power BI DAX calculations.