In a PivotTable, you can create fields that will show you the percentage change of the previous value. This is especially popular in companies that want to see how did the sales changed compared to the previous month.
We are going to use the following example.
Calculate the percentage difference
In order to know how the sales changed from month to month, you have to follow these steps.
- Copy the Sales column to column C and name it Change.
- Click any cell inside the table.
- Navigate to Insert >> Tables and click PivotTable.
- When the Create PivotTable window appears, click OK without changing any options.
- Inside the PivotTable fields check all the fields.
- You can see in the newly created table, that you have two fields with the same values but different names.
- Right-click any fields inside the Sum of Change and choose Show Values As >> % Difference From….
- Change Base Item to (previous). It will compare the difference between this month and the previous one. This difference will be displayed in percentages.
- Click OK to see the result.
To make this PivotTable even more interesting, select all the values inside the Sum of Change field and navigate to Home >> Styles. Click Conditional Formatting >> Color Scales and choose the first option.
This is how the PivotTable looks like.