Create calculated field for pivot table, subtracting 2 following Qtrs

AmitM

Board Regular
Joined
Feb 4, 2015
Messages
53
hi all,

This is the SQL data I imported into power pivot:

ProfitCenter_NameAccount_GroupProject_GroupFiscal_YearQ_FYEditionEdition_TypeRevenue
AAAAAA2018Q4/18ActualInternal5
ABBBBB2019Q1/19ActualInternal9
BCCCCC2018Q3/19OtherExternal10
AAAAAA2019Q1/19ActualInternal8
AAAAAA2019Q2/19ActualInternal4
ABBBBB2019Q2/19ActualInternal3
...

<tbody>
</tbody>

I want to be able to add columns to a pivot table that will show what is the difference between one Qtr to the next one (i.e. next qtr-previous qtr), while applying this calculation on identical items (i.e. ProfitCenter_Name & Account_Group & Project_Group), having filters applied (such as: Edition, Edition_Type).

Example:
My desired pivot table will show the following:
20182019201920192019
ProfitCenter_NameAccount_GroupProject_GroupQ4Q1Q2Q3Q4
AAAAAA3-4
ABBBBB-6
...

<tbody>
</tbody>

by using the above relevant data, as shown below:
ProfitCenter_NameAccount_GroupProject_GroupFiscal_YearQ_FYEditionEdition_TypeRevenue
AAAAAA2018Q4/18ActualInternal5
AAAAAA2019Q1/19ActualInternal8
AAAAAA2019Q2/19ActualInternal4
ABBBBB2019Q1/19ActualInternal9
ABBBBB2019Q2/19ActualInternal3

<tbody>
</tbody>
(With data being filtered using slicers) to display only Edition=Actual & Edition_Type=Internal)


Thanks!!
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,601
Messages
6,120,467
Members
448,965
Latest member
grijken

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