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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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