+ Reply to Thread
Results 1 to 8 of 8

Custom Formula for Percentage Change

  1. #1
    Registered User
    Join Date
    06-20-2016
    Location
    London, England
    MS-Off Ver
    Windows 7
    Posts
    4

    Custom Formula for Percentage Change

    Hi and sorry if this has been posted before

    I have a spreadsheet that contains a number of items that have percentage distribution for two time periods i.e. the max distribution can only be 100% meaning this particular product is available in all stores

    I have put these values into a pivot table and of course, the sub totals sum up all of the values, so I changed the field settings to Max which works perfectly. I then thought to add a custom field that works out the difference between the percentages over the two time periods, but it isn't working as planned as the result is simply telling me the difference between the two summed up sub totals not the max percentages. For example Total A Last Year was 63% and Total A This Year is 83%, percentage change is 32%. Changed totals to Max (Last Year 48%, this year 52%) and the percentage change should be +8%. but is still showing as 32%

    Any help would be very much appreciated

  2. #2
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Custom Formula for Percentage Change

    Hi and welcome to the forum

    It's difficult to help with pivot tables without being able to see the data. Would you be able to upload a small sample (desensitized) so we can take a look?

    To attach a workbook, click on the Go Advanced button and scroll down to Manage Attachments. Click there and a new page will open where you can browse to select your file, then click on the Upload button.
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

  3. #3
    Registered User
    Join Date
    06-20-2016
    Location
    London, England
    MS-Off Ver
    Windows 7
    Posts
    4

    Re: Custom Formula for Percentage Change

    Thanks for the welcome

    I was afraid that someone would ask for the data, but unfortunately it is a work file and there is two much data.. However, what I maybe able to do is try and recreate the issue with a small amount of data and hope someone can help

  4. #4
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Custom Formula for Percentage Change

    That would be brilliant

    It doesn't have to be a massive amount... 20 or so rows should be enough. It just needs to reflect the pivot table you currently have and the approach you've already tried.

  5. #5
    Registered User
    Join Date
    06-20-2016
    Location
    London, England
    MS-Off Ver
    Windows 7
    Posts
    4

    Re: Custom Formula for Percentage Change

    Ok, can't see the Advanced button and can't manage attachments as the page fails to load

  6. #6
    Registered User
    Join Date
    06-20-2016
    Location
    London, England
    MS-Off Ver
    Windows 7
    Posts
    4

    Re: Custom Formula for Percentage Change

    Managed to upload a file, but can't seem to attach
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Custom Formula for Percentage Change

    OK thanks - it's there now. I'll try to have a look later for you unless someone else picks it up in the meantime

  8. #8
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Custom Formula for Percentage Change

    Hi again

    I've had a look at your spreadsheet and the problem is that, although you are displaying the MAX value, when you create a calculated field it is still looking at all the individual data rows in your source, so is basing the calculation on these. If you have a look at Sheet 4, I filtered out just Variant#10Single to prove the calculation that's actually going on in your Field1.

    I tried a new calculated field with MAX in front of each of your QTRYA and QTRTY fields, but no joy with that.

    The only way I've managed to solve it is to create a new field outside your pivot table which looks at the displayed numbers in each column and performs the calculation. Not ideal I know as it won't grow/shrink with your pivot table, but I haven't been able to come up with an alternative solution.
    Attached Files Attached Files

+ 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. [SOLVED] Formula help for working out percentage change
    By el_lloydie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-05-2015, 08:13 AM
  2. Replies: 1
    Last Post: 01-30-2014, 08:51 AM
  3. Change a percentage formula
    By shug1986 in forum Excel General
    Replies: 3
    Last Post: 07-04-2012, 02:29 PM
  4. [SOLVED] Need formula to figure out percentage of change for 5 years
    By klhering in forum Excel General
    Replies: 3
    Last Post: 07-26-2006, 10:35 AM
  5. What formula do I use to find a percentage change?
    By buzy lizzy in forum Excel General
    Replies: 2
    Last Post: 09-14-2005, 02:06 PM
  6. [SOLVED] Need formula to calculate average monthly percentage of change...
    By vikgarden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2005, 02:06 PM
  7. Custom formula to show each item as percentage of grand total?
    By RoryMacLeod in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-07-2005, 10:49 AM

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