Finding Fraction of 2 calculated fields in Pivot Table

jenna234

New Member
Joined
Jul 11, 2018
Messages
1
[FONT=&quot]I have a table which summaries a list of purchases made by customers. In this table it has 3 columns, the customer ID, their max budget and the purchase amount. I wish to make a pivot table which shows compiles the sum of purchases for each customer and the % of their budget used. I had no problem making the sum of purchases amount but am having difficulty using a pivot table to make the % used field. [/FONT]
[FONT=&quot]I've tried to make a calculated field using: = SUM( 'Purchase Amount ($)')/ 'Max Budget ($)'[/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]But it does not take into account the sum of the purchase amount. It just uses 1 of the values from one purchase rather than a sum of all the purchases. [/FONT]
[FONT=&quot]
[/FONT]

[FONT=&quot]C1 should have 22% used (with 2 purchases) and C2 with 25% used (with 3 purchases) but instead it returns C1 with 11% and C2 with 8.33%.[/FONT]
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Add a quotient column to the source data. I don't think calculated fields can selectively aggregate:


Excel 2010
ABCDEFGH
1CustomerMax BudgetPurchase Amount%Row LabelsMax of Max BudgetSum of Purchase AmountSum of %
2C15050.1C150110.22
3C15060.12C2100250.25
4C210070.07
5C210080.08
6C2100100.1
Sheet14
Cell Formulas
RangeFormula
D2=C2/B2
 
Last edited:
Upvote 0
Welcome to the forum.

Do you have Power Pivot available?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

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