PivotTable Percentage A-B

judgepax

Board Regular
Joined
Jan 20, 2009
Messages
53
I have a very large set of data (7000+ rows) that I am using a PivotTable to summarize. Simplifed, PivotTable looks like following. "Revenue" and "Expenses" were in the raw 7000-row data, and I created a PivotTable "Calculated Field" for both "Margin$" and ""Margin%". Issue I am having is showing the "Margin%" Variances.

Good example of the problem is Frisco's Apples: for now the PivotTable is giving me a -10% Margin% (-20 Margin / 200 Revenue) but what I want the Variance Margin% to show is -5% (10% Actual - 15% Budget).

PivotTable is working perfect for everything else so I am hoping a bright mind out there will know how to keep the Margin% as Revenue/Expenses for Actual and Budget, but Margin% as Actual-Budget for Variance.

Thanks, y'all!

Actual
Apples
Actual
Bananas
Actual
Oranges
Budget
Apples
Budget
Bananas
Budget
Oranges
Variance
Apples
Variance
Bananas
Variance
Oranges
FriscoRevenue1000150020008006001400200900600
Expense900142517206805461176220879544
Margin$1007528012054224-202156
Margin%10%5%14%15%9%16%
DenverRevenue100012003000100060032000600-200
Expense92010802430850546268870534-258
Margin$8012057015054512-706658
Margin%8%10%19%15%9%16%
AtlantaRevenue1000300500012006003600-200-3001400
Expense850285445010205463024-170-2611426
Margin$1501555018054576-30-39-26
Margin%15%5%11%15%9%16%
Grand TotalRevenue3000300010,000300018008200012001800
Expense26702790860025501638688812011521712
Margin$33021014004501621312-1204888
Margin%11%7%14%15%9%16%

<TBODY>
</TBODY>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,827
Messages
6,121,806
Members
449,048
Latest member
greyangel23

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