% Diff for Grouped Months in a linked Pivot Table

Zinbobal

New Member
Joined
Aug 12, 2015
Messages
2
Hello,

I have a pivot table set out as below, with the dates grouped by Month, Qtr and Year. The pivot table is linked from 2 data sources

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]QTR4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]OCT[/TD]
[TD][/TD]
[TD][/TD]
[TD]NOV[/TD]
[TD][/TD]
[TD][/TD]
[TD]DEC[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FC[/TD]
[TD]AC[/TD]
[TD]%DIFF[/TD]
[TD]FC[/TD]
[TD]AC[/TD]
[TD]%DIFF[/TD]
[TD]FC[/TD]
[TD]AC[/TD]
[TD]%DIF[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]100[/TD]
[TD]110[/TD]
[TD]10%[/TD]
[TD]50[/TD]
[TD]100[/TD]
[TD]100%[/TD]
[TD]70[/TD]
[TD]50[/TD]
[TD]-29%[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]100%[/TD]
[TD]20[/TD]
[TD]20[/TD]
[TD]0%[/TD]
[TD]30[/TD]
[TD]25[/TD]
[TD]-20%
[/TD]
[/TR]
</tbody>[/TABLE]

I am having problems with the % Diff columns. Currently I have set up a column in the original data to work it out, but when I collapse the Qtr or Year, it becomes a sum of the %'s:


[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]QTR4[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]FC[/TD]
[TD]AC[/TD]
[TD]%DIFF[/TD]
[/TR]
[TR]
[TD]APPLE[/TD]
[TD]220[/TD]
[TD]260[/TD]
[TD]81%[/TD]
[/TR]
[TR]
[TD]ORANGE[/TD]
[TD]70[/TD]
[TD]90[/TD]
[TD]80%[/TD]
[/TR]
</tbody>[/TABLE]

I can get it to work using a calculated field, but only if the pivot table has 1 set of source data. And ideally I would like to have both sources feeding in.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
As you can get the pivot table working from one data source then it will also work from two.
Just combine the data sources so that the data is in the same set up as a single source.
This is defined by SQL that will be specific to your set up. The SQL can do the calculated field.
Suggest you give one sample row from the single data source & describe the calculated field that works, and also, one sample row from each of the current sources. Plus any explanation of how the two tables are related (if joins are needed).
regards
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,313
Members
452,634
Latest member
cpostell

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