+ Reply to Thread
Results 1 to 3 of 3

Finding Fraction of 2 calculated fields in Pivot Table

  1. #1
    Registered User
    Join Date
    07-11-2018
    Location
    Canada
    MS-Off Ver
    MS 2013
    Posts
    1

    Finding Fraction of 2 calculated fields in Pivot Table

    Screen Shot 2018-07-11 at 6.08.04 PM.png

    Screen Shot 2018-07-11 at 6.07.50 PM.png

    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.
    I've tried to make a calculated field using: = SUM( 'Purchase Amount ($)')/ 'Max Budget ($)'

    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.

    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%.
    Last edited by jen324; 07-11-2018 at 07:13 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Finding Fraction of 2 calculated fields in Pivot Table

    Hi, welcome to the forum

    I would probably just do this with formulas in another table. Something like...
    sumif(this)
    sumif(that)
    this/that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Finding Fraction of 2 calculated fields in Pivot Table

    Jen...
    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).

    Please make sure to include the full link, so that other members will be permitted to continue helping you

    Note that if you have fewer than 10 posts, you may need to type the link, or past it in pieces (or ask a mod to do that for you)

    https://www.mrexcel.com/forum/excel-...vot-table.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 10-26-2015, 06:49 AM
  2. Calculated fields in a pivot table
    By cmarston1500 in forum Excel Charting & Pivots
    Replies: 14
    Last Post: 06-12-2013, 12:24 PM
  3. [SOLVED] Calculated fields in a Pivot table
    By dwhite30518 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-23-2012, 03:33 PM
  4. Help w/Pivot Table Calculated Fields
    By pcat29 in forum Excel General
    Replies: 1
    Last Post: 01-28-2012, 06:28 AM
  5. Replies: 0
    Last Post: 03-16-2009, 05:42 PM
  6. Pivot Table calculated fields
    By tigertim71 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-15-2008, 04:58 AM
  7. calculated fields in pivot table
    By minkus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2008, 12:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1