Show Actual and Projected Running Totals in an Excel PivotTable
Question details
Show cumulative actual and projected values in an Excel PivotTable without displaying actual totals for future dates.

- Product
- Microsoft Excel PivotTable and PivotChart
- Device & OS
- not provided
- Scenario
- A PivotTable and chart should use data from the Tag Data worksheet to display actual and projected values over time.
- Observed behavior
- Cumulative actual values appear for future dates, and the PivotTable and chart need to reference the correct source data.
Check that Tag Data has a valid Date column and separate Actual and Projected columns containing period values, with missing actuals left blank rather than entered as zero. The measures below add period values; do not use them unchanged if the source values are already cumulative.
Use Data Model measures to control the running totals
Use this method when the PivotTable must stop actual totals at the last actual date while continuing a separate projected total.
The projected measure below accumulates projected values separately; it does not automatically add the final actual total as a starting balance.
These instructions require an Excel version that supports the Data Model, Power Pivot, and DAX measures.
On Tag Data, select the data and choose Insert > Table. In Table Design, name the table Tag Data. Verify that Date contains real Excel dates and that future Actual cells are blank.
Create a table named Dates with a Date column containing one unique date for every day in the reporting range. Select the Tag Data table and choose Insert > PivotTable, checking Add this data to the Data Model. Add Dates to the Data Model, then use Data > Relationships to link Dates[Date] to Tag Data[Date].
Open Power Pivot > Measures > New Measure and add this measure, adjusting table and column names if needed: Actual Running := VAR CurrentDate = MAX('Dates'[Date]) VAR LastActualDate = CALCULATE(MAX('Tag Data'[Date]), REMOVEFILTERS('Dates'), KEEPFILTERS(NOT ISBLANK('Tag Data'[Actual]))) RETURN IF(NOT ISBLANK(LastActualDate) && CurrentDate <= LastActualDate, CALCULATE(SUM('Tag Data'[Actual]), FILTER(ALL('Dates'), 'Dates'[Date] <= CurrentDate)), BLANK()).
In Power Pivot > Measures > New Measure, add: Projected Running := VAR CurrentDate = MAX('Dates'[Date]) RETURN CALCULATE(SUM('Tag Data'[Projected]), FILTER(ALL('Dates'), 'Dates'[Date] <= CurrentDate)).
In PivotTable Fields, place Dates[Date] in Rows and add Actual Running and Projected Running to Values. Use Data > Refresh All after changing the source. Check a date after the final actual entry: Actual Running should be blank while Projected Running continues.
Create or select a PivotChart linked to the revised PivotTable. Check its plotted dates and series; if blanks are displayed as zero, review the chart's empty-cell settings or use a regular chart linked to the revised PivotTable output.
Review PivotTable source data with WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel workbooks to review source dates and values, making migration between office suites straightforward. It does not replace the Excel Data Model measures described above.

Frequently Asked Questions
Why does the actual running total appear on future dates?
A running total can carry the last accumulated value forward even when later actual entries are blank. Use a measure that returns BLANK() when the displayed date is later than the last actual date.
How can I check whether the PivotTable uses Tag Data?
Select the PivotTable and open PivotTable Analyze > Change Data Source for a standard PivotTable. For a Data Model PivotTable, inspect the model tables and relationships through Power Pivot.
Does the projected running total include the final actual total?
Not in the measure shown here. It sums the Projected column independently. If your forecast must start from the final actual balance, adjust the measure to add that balance and avoid counting overlapping periods twice.
What should I do after adding new actual or projected rows?
Add the rows to the Tag Data table, extend the Dates table if the new dates fall outside its range, and select Data > Refresh All. Confirm that the PivotTable and chart include the new dates.




