Variance Percentage in Pivot Table

psl1089

New Member
Joined
Apr 24, 2018
Messages
6
I have a table that looks something like
[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Month[/TD]
[TD]Target[/TD]
[TD]Actual[/TD]
[TD]Variance %[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Jan[/TD]
[TD]1075[/TD]
[TD]1500[/TD]
[TD]28%[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Jan[/TD]
[TD]4109[/TD]
[TD]4950[/TD]
[TD]17%[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]Feb[/TD]
[TD]1084[/TD]
[TD]4000[/TD]
[TD]73%[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]Feb[/TD]
[TD]1000[/TD]
[TD]2250[/TD]
[TD]56%[/TD]
[/TR]
</tbody>[/TABLE]

The pivot table has a slicer that filters by person which works great when only looking at one at a time. The issue I am having is that if I unfilter and select all on the slicer, I want target and actual to sum everything, but keep variance calculated by target and actual. So in the above example for January, I'm getting a variance of 28% + 17% = 45% rather than the 20% I want it to show. The variance % field is a calculated column in power pivot.

Is there any way for me to have the calculated field calculate on what is shown in the other columns rather than sum everything?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Percentages in Pivot Tables... Usually the order of operations gets fouled up which requires either a helper column in your original source, or the use of DAX/Power Pivot.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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