Fix Incorrect Power BI Totals for Monthly Measures
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.

- 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.
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.
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.
In Power BI Desktop, go to the Modeling tab and select New measure.
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])))).
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.

Validate the Measure Business Logic and Date Calculations
Use this check before changing DAX when the total may intentionally not be additive or when date-based formulas return unexpected results.
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. Download WPS Office: Visit the WPS Office download page and install WPS Office on your Windows or Mac computer.
- 2. Open the Excel source file: Launch WPS Spreadsheets, click Open, and select the .xlsx workbook you use as Power BI source data.
- 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.

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.




