Pivot Table % Change -- Is it possible?

melfricke

New Member
Joined
Oct 13, 2015
Messages
7
I watched the excel videos 610-611 and I was hoping to find a solution for % change, after the reading the comments I found that you had suggested posting questions here. I searched but didn't find a match.

When calculating the "% Of" in the pivot table, I find that I'm not actually calculating the % change which is the same formula minus 1. An example:

% OF
=current year/previous year

% Change
=current year/previous year-1

I would like to calculate an actual % change and hoped that there was a way to do that within a pivot table.

Thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Yes melfricke,

You can do this in pivot table using calculated field.

By BODMAS rule below formula should work:-

=cy/py-1

and it's working in my sample file :)

Regards,
DILIPandey
 
Upvote 0
So I took a look and I'm not seeing that this is possible in a pivot table. When I go to the Value Field Settings > show values as, the drop down menu lists formulas but this particular one is not there. The formula for % change is not listed. I understand the formula will work elsewhere, particularly out side of a pivot table, but please show me how you made this work in your sample file.

Thank you!


Yes melfricke,

You can do this in pivot table using calculated field.

By BODMAS rule below formula should work:-

=cy/py-1

and it's working in my sample file :)

Regards,
DILIPandey
 
Upvote 0
Assuming that you already have two columns CurrentYear and PreviousYear in your pivot, you probably need to create a calculated field.

Click on your pivot table and you should see two new ribbon menus appear - pivottable options and design. In Options you should see an option "Fields, Items & Sets". Click on it and select "Calculated Field". In the dialog box that appears you can write formula, assign it a name and use it in your pivottable.
 
Upvote 0
I don't have those columns? It wouldn't work with my data organization, in fact, I'm not sure that it would make sense to organize data like that ever.

I use Calculated field often, but in this case I can't spell out how to identify current period or previous period. THese would all be in one column with a new line items for each period. Our goal is to compare the previous quarter and previous year with the current quarter.

This isn't the solution. I need to get a % Change for impressions, clicks, spend... ect.



Assuming that you already have two columns CurrentYear and PreviousYear in your pivot, you probably need to create a calculated field.

Click on your pivot table and you should see two new ribbon menus appear - pivottable options and design. In Options you should see an option "Fields, Items & Sets". Click on it and select "Calculated Field". In the dialog box that appears you can write formula, assign it a name and use it in your pivottable.
 
Upvote 0
I can use grouping for the date range but I need to bundle it by Quarter/Year. Since we're seeking to compare the previous quarter and the previous year with the current quarter.

QuarterYearStart DateEnd DateAd GroupNetworkCampaign NameConverted Clicksperformance_indicatorImpressionsClicksCostFrequencyReach
Q3 20152015-12-012014-09-30ANews Feed on Desktop ComputersGreenT11actions:eek:ffsite_conversion717217.231.03913690
Q3 20142014-09-012014-09-31BNews Feed on Desktop ComputersGreenT13actions:eek:ffsite_conversion450435.231.236264364
Q2 20142014-06-012014-06-30CNews Feed on Desktop ComputersGreenT7actions:eek:ffsite_conversion26823524.871.0452072566

<colgroup><col><col><col span="4"><col><col span="5"><col span="2"></colgroup><tbody>
</tbody>


okay melfricke, post the small sample of your data ?


Regards,
DILIPandey
 
Upvote 0
Hi melfricke,

Based on your sample data, I have created below pivot table:-

Sum of Reach
YearTotal
2015690
20142930
% chg-76%
Grand Total3619.235495

<colgroup><col><col></colgroup><tbody>
</tbody>

where % chg is a calculated item having formula as :-

='2015' /'2014' -1

I can see the % change in output. Thanks.

Regards,
DILIPandey
 
Upvote 0
Ahh Yes!

That does work. I've never used calculated items... Now to find a way to make it so I don't have to update the formula every quarter. This is a good start.

Hi melfricke,

Based on your sample data, I have created below pivot table:-

Sum of Reach
YearTotal
2015690
20142930
% chg-76%
Grand Total3619.235495

<tbody>
</tbody>

where % chg is a calculated item having formula as :-

='2015' /'2014' -1

I can see the % change in output. Thanks.

Regards,
DILIPandey
 
Upvote 0

Forum statistics

Threads
1,214,537
Messages
6,120,096
Members
448,944
Latest member
SarahSomethingExcel100

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top