Calculate a Monthly Running Total in an Excel PivotTable
Question details
Calculate a running total by month and year in an Excel PivotTable.

- Product
- Microsoft Excel PivotTable and Power Pivot
- Device & OS
- not provided
- Scenario
- A PivotTable displays submission data by month and year, and the user wants a cumulative total in chronological order.
- Observed behavior
- The desired result is a running total that continues across month and year boundaries.
Check that your submission dates are valid Excel dates and that your Excel version supports the Data Model and Power Pivot. The example below assumes a submission amount column and a calendar table with one row per date.
Create a Data Model measure for the running total
Use a DAX measure when the running total must continue across years in a PivotTable.
This example uses Submissions[Amount] as the value to sum and Calendar[Date] as the date field. Replace those names with your actual table and column names. The measure removes calendar filters before calculating the cumulative total, while retaining filters from other tables.
Create a Calendar table with a continuous, unique Date column covering the full years of your submission data. Add Year and Month columns, and sort the Month column by a month-number column so months appear chronologically.
Select each source table and use Power Pivot > Add to Data Model. In Data > Relationships, link Calendar[Date] to the date-only submission date column in the Submissions table.
In Power Pivot, select Measures > New Measure and enter: Running Total := VAR CurrentDate = MAX('Calendar'[Date]) RETURN CALCULATE(SUM(Submissions[Amount]), FILTER(ALL('Calendar'), 'Calendar'[Date] <= CurrentDate)).
Insert a PivotTable using the Data Model. Put Calendar[Year] and Calendar[Month] in Rows, then add Running Total to Values. Check that the total carries forward from December to January.

Explore monthly totals in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for working with monthly data and PivotTables. Open compatible Excel files to make migration easier; it does not repair Excel Power Pivot measures.

Frequently Asked Questions
Why does the running total need a calendar table?
A calendar table provides a continuous date column for the DAX measure and consistent Year and Month fields for the PivotTable rows. Link Calendar[Date] to your submission date column through Data > Relationships.
Does this measure reset at the start of each year?
No. The measure removes calendar filters and totals all dates up to the current month, so the cumulative value continues from one year into the next.
How do I count submissions instead of summing an amount?
In the Power Pivot measure, replace SUM(Submissions[Amount]) with COUNTROWS(Submissions) if each row represents one submission.
Why are the months displayed alphabetically?
If Month contains text names, sort it by a numeric month column in Power Pivot. Use the sorted Month field under Calendar[Year] in the PivotTable rows.




