Pivot Table Issues

Calculate a Monthly Running Total in an Excel PivotTable

Muhammad TalhaMuhammad Talha Dec 2, 2026 868 views

Question details

Calculate a running total by month and year in an Excel PivotTable.

Calculate a Monthly Running Total 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.
Before you start

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.

Solution 1Recommended

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.

1
Prepare the calendar table

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.

2
Add the tables to the Data Model

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.

3
Create the measure

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)).

4
Build the PivotTable

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.

Create a Data Model measure for the running total
Counting submissions instead: If each row represents one submission and you need a count rather than a sum, replace SUM(Submissions[Amount]) in the measure with COUNTROWS(Submissions).
Free Microsoft Office alternative

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.

Work with monthly data and PivotTables in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar interface for an easier transition from Excel
QA img-9

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.