Pivot table difference column (same field)

john-paul

New Member
Joined
Nov 23, 2008
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to create an additional column (field/item/calculated?) in a pivot table to show the difference row by row.

My data is like this:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Customer[/TD]
[TD]Date[/TD]
[TD]$[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Jan-18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Jan-18[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Feb-18[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]Feb-18[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]Jan-18[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]Jan-18[/TD]
[TD]125[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]Feb-18[/TD]
[TD]150[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]Feb-18[/TD]
[TD]150[/TD]
[/TR]
</tbody>[/TABLE]

I would like to produce a report like this, where the Difference column if Feb-18 - Jan-18 to show growth month on month:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Jan-18[/TD]
[TD]Feb-18[/TD]
[TD]Difference[/TD]
[/TR]
[TR]
[TD]ABC[/TD]
[TD]100[/TD]
[TD]150[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]XYZ[/TD]
[TD]250[/TD]
[TD]300[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]Total[/TD]
[TD]350[/TD]
[TD]450[/TD]
[TD]100[/TD]
[/TR]
</tbody>[/TABLE]

Any help would be be appreciated.

Thank you,
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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