Pivot Table Calculated value based on another item

lukuser

New Member
Joined
May 29, 2015
Messages
1
Hello I need to provide a '% of' type of calculation but based on another item. I guess it's best explained with an example. Here's an excerpt from my Pivot Table (%Comm column was added to the example):
Code:
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Agent        GLAccount                        Comm    %Comm
_General     Accounts receivable - Regular    -$250   
             Commission payable Sundry         $120   
Johnny       Commissions earned                $140   
             Commission expense               -$70    50%
Gilles       Commissions earned                $110   
             Commission expense               -$50    45%
</code>
So the column '%Comm' is what I'd like to calculate. It is ABS(Comm of 'Commission expense' / Comm of 'Commissions Earned') for each agent. So, for example, 50% = ABS(-70/140) I'm guessing I'll need to create a Calculated Field '%Comm', but I'm not sure how to define a formula for it.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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