Create an Excel PivotChart with Year-over-Year and Monthly Changes
Question details
Create a chart of monthly sales, taxes, and fees with year-over-year and month-over-month changes in amounts and percentages.

- Product
- Microsoft Excel PivotTable and PivotChart
- Device & OS
- not provided
- Scenario
- The user wants to compare monthly financial figures with the same month in the previous year and with the preceding month.
- Observed behavior
- The desired chart displays monthly values alongside amount and percentage changes for both comparison periods.
Check that the source data has a valid date column and numeric columns for sales, taxes, and fees. Include the months and years needed for comparison, and identify any missing periods before interpreting changes.
Build a PivotChart with year-over-year comparisons
Use grouped dates and Show Values As to compare each month with the same month in the preceding year.
Select a cell in the source data, choose Insert > PivotTable, and confirm the data range and destination.
Drag the date field to Rows. Right-click a date in the PivotTable, choose Group, and select Years and Months.
Drag Sales, Taxes, and Fees to Values. Add each field twice more so that the original amount, amount change, and percentage change can be displayed separately.
For each amount-change copy, open Value Field Settings > Show Values As, choose Difference From, set Base field to Years, and set Base item to (previous). For each percentage-change copy, repeat with % Difference From.
Click the PivotTable and choose Insert > PivotChart. Select a chart type, then use the field controls to choose the measures you want to display.

Calculate consecutive-month changes in a separate PivotTable
Use a continuous month field to compare January with the preceding December as well as other consecutive months.
Chart monthly changes with WPS Spreadsheets
Use a PivotTable to summarize monthly figures in WPS Spreadsheets, then calculate changes in a summary range and create a standard chart. The resulting chart is not a PivotChart.
- 1. Prepare monthly dates: Open the data in WPS Spreadsheets. Add a Month Start column using =DATE(YEAR(A2),MONTH(A2),1), adjusting A2 to the date cell, and fill it down.
- 2. Summarize the measures: Select the data and choose Insert > PivotTable. Place Month Start in Rows and Sales, Taxes, and Fees in Values; sort the months chronologically.
- 3. Create a comparison range: Copy the monthly PivotTable results to a separate range as values. Ensure every calendar month is present, including months with no activity, before calculating changes.
- 4. Calculate changes: If sales are in column B and row 2 is the first month, enter =B14-B13 for the month-over-month amount change and =IFERROR(B14/B13-1,"") for its percentage. Use =B14-B2 and =IFERROR(B14/B2-1,"") for the year-over-year changes; adapt the columns for taxes and fees, and format percentage cells as percentages.
- 5. Insert a chart: Select the dates, amounts, and comparison columns in the summary range, then choose Insert > Chart and select a suitable chart type.

Frequently Asked Questions
Why can’t I group my PivotTable dates by year and month?
Check the source date column for blank cells, text, or invalid dates. Correct the entries, refresh the PivotTable, then right-click a date and choose Group > Years and Months.
How do I show percentage change instead of the amount change?
Add the value field to Values again, open Value Field Settings > Show Values As, and select % Difference From. Choose the appropriate base field and (previous) as the base item.
Why is January’s previous-month comparison missing?
If Months is nested under Years, the comparison can restart at the year boundary. Use a continuous Month Start field in a separate PivotTable and set Show Values As to Difference From or % Difference From with Month Start as the base field.
Can I put year-over-year and monthly results on one chart?
Yes. If the results come from separate PivotTables, arrange the desired values in a common summary range, select that range, and choose Insert > Chart. This creates a standard chart rather than a PivotChart.
Why is a percentage change blank?
A percentage change needs a prior-period value that is not zero. Check that the prior month or year exists in the source data and that its value is nonzero.




