Pinterest Pixel

Show The Percent of Difference From Previous Years With Excel Pivot Tables

Bryan
I am sure that your boss has asked you to come up with a Year on Year variance report at some stage.
 There are a couple of ways to get him/her an answer.

One is using Formulas, but that will take time to set up and you are exposed to errors! The other method is the Pivot Table way, which is quick and reduces the risks of making any errors....ah yeah I almost forgot, it is also easy to add new data to your variance analysis!

I am sure that your boss has asked you to come up with a Year on Year variance report at some stage.  There are a couple of ways to get him/her an answer. One is using Formulas, but that will take time to set up and you are exposed to errors! The other method is the Pivot Table way, which is quick and reduces the risks of making any errors….ah yeah I almost forgot, it is also easy to add new data to your variance analysis!

Key Takeaways:

  • Analyze Year-over-Year Changes – The “Percent Difference From” calculation in Pivot Tables helps compare data across years by showing the percentage change from one year to the next.
  • Use the “Show Values As” Feature – You can apply the “Percent Difference From” option by right-clicking a value in the Pivot Table, selecting Show Values As, and choosing % Difference From with a Base Field (e.g., Year).
  • Set a Base Item for Comparison – When configuring the percentage difference, select the previous year as the Base Item to calculate the change relative to that year.
  • Ensure Proper Data Sorting – Arrange your data in chronological order (e.g., by Year) to get accurate percentage difference calculations without errors.
  • Format the Output for Clarity – Apply percentage formatting to make the results more readable and highlight key insights in your Pivot Table.

How to Show The Percent of Difference From Previous Years With Excel Pivot Tables

STEP 1: Insert a new Pivot table by clicking on your data and going to Insert > Pivot Table > New Worksheet or Existing Worksheet

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 2: In the ROWS section put in the Sales Month field, in the COLUMNS put in the Financial Year field and in the VALUES area you need to put in the Sales field twice, I explain why below:

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 3: Click the second Sales field’s (Sum of SALES2) drop down and choose Value Field Settings

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 4: Select the Show Values As tab and from the drop down choose % Difference From.  Select Financial Year as the Base Field, and (previous) as the Base Item. This means that we will compute the difference with the previous years in percentage terms.

Also change the Custom Name into % Difference from Previous Year to make it more presentable. Click OK.

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 5: Notice that the % Difference from Previous Year data is in a decimal format that is hard to read:

Show The Percent of Difference From Previous Years With Excel Pivot Tables

To format the % Difference from Previous Year column, click the second Sales field’s (% Difference from Previous Year) drop down and choose Value Field Settings. 

The goal here is for us to transform numbers from a decimal format (i.e. 0.23), into a percentage format that is more readable (i.e. 23%).

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 6: Click the Number Format button.

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 7: Inside the Format Cells dialog box, make your formatting changes within here and press OK twice.  

In this example, we used the Percentage category to make our % Difference from Previous Year numbers become more readable.

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

STEP 8: Right click on the columns with the empty columns and click Hide. These columns are empty because there are no previous values it can compare values on. For example the Year 2012 is the first year and has no previous year to compare to. 

Show The Percent of Difference From Previous Years With Excel Pivot Tables

 

You now have your Pivot Table, showing the % Difference from Previous Year for the sales data of years 2012, 2013, and 2014.

You can see that each red box is the percentage of difference computed against the previous year (i.e. Year 2013 vs Year 2012, and Year 2014 vs Year 2013).

Show The Percent of Difference From Previous Years With Excel Pivot Tables

Frequently Asked Questions

How do I calculate the percent difference from previous years in a Pivot Table?
To calculate the percent difference, right-click on any value in the Pivot Table, select Show Values As, then choose % Difference From. Set the Base Field to “Year” and the Base Item to the previous year for comparison.

Why is my percent difference calculation showing errors or incorrect values?
Ensure that your data includes a proper time-based field (like “Year”) and is sorted in ascending order. If some years are missing data, Excel may not calculate the difference correctly.

Can I compare percentage differences for multiple years at once?
Yes, you can compare multiple years by ensuring all years are included in the Base Field. Excel will calculate the percentage difference for each year relative to the previous one.

How can I format the percentage difference results for better readability?
Select the column displaying the percentage differences, go to the Home tab, and apply Percentage Formatting to make the results clear and easy to interpret.

Can I use the percent difference calculation with other fields besides years?
Yes, you can apply the % Difference From function to other fields, such as quarters or months, by selecting a different Base Field like “Month” instead of “Year.”

PIVOT BANNER

If you like this Excel tip, please share it



Show The Percent of Difference From Previous Years With Excel Pivot Tables | MyExcelOnline


Bryan

Bryan Hong is an IT Software Developer for more than 10 years and has the following certifications: Microsoft Certified Professional Developer (MCPD): Web Developer, Microsoft Certified Technology Specialist (MCTS): Windows Applications, Microsoft Certified Systems Engineer (MCSE) and Microsoft Certified Systems Administrator (MCSA).

He is also an Amazon #1 bestselling author of 4 Microsoft Excel books and a teacher of Microsoft Excel & Office at the MyExecelOnline Academy Online Course.

See also  List Calculated Field and Item formulas

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...