Pivot Table Issues

Create an Excel PivotChart with Year-over-Year and Monthly Changes

Aamir Naveed AkramAamir Naveed Akram Nov 18, 2026 869 views

Question details

Create a chart of monthly sales, taxes, and fees with year-over-year and month-over-month changes in amounts and percentages.

Create an Excel PivotChart with Year-over-Year and Monthly Changes
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.
Before you start

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.

Solution 1Recommended

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.

1
Create the PivotTable

Select a cell in the source data, choose Insert > PivotTable, and confirm the data range and destination.

2
Group the dates

Drag the date field to Rows. Right-click a date in the PivotTable, choose Group, and select Years and Months.

3
Add the measures

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.

4
Set year-over-year changes

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.

5
Insert the chart

Click the PivotTable and choose Insert > PivotChart. Select a chart type, then use the field controls to choose the measures you want to display.

Build a PivotChart with year-over-year comparisons
Check the comparison periods: The previous year item must be the preceding calendar year for a true year-over-year comparison. The first available year has no prior-year result, and percentage changes may be blank when the prior value is zero.
Analyze monthly data in WPS Office

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. 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. 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. 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. 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. 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.
Summarize sales, taxes, and fees by month with a PivotTableCalculate monthly and year-over-year amount and percentage changesOpen and save Microsoft Excel XLSX filesCreate charts in a familiar spreadsheet interface
microsoft office alternative - wps office

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.