+ Reply to Thread
Results 1 to 10 of 10

Calculating difference between 2 market shares in a Pivot Table

  1. #1
    Registered User
    Join Date
    03-23-2018
    Location
    Beirut, Lebanon
    MS-Off Ver
    2013
    Posts
    7

    Calculating difference between 2 market shares in a Pivot Table

    Hello,

    I have a Pivot table that contains 2 column of values for 2 different years (2017 and 2016).
    The values represent Sales amounts for different companies during the 2 years.
    I converted the values to "% of Grand Total" in order to find the market share of each company during each year.
    I need now to find the difference between the market shares of the two years for each company, so if a company had a market share of 22% in 2017 and 24% in 2016, then the answer would be -2 (lost 2 points of market share vs the previous year)
    Does anyone know if this can be done in Pivot Table?

    P.S. I need it to be calculated within the pivot table because the values are dynamic and are linked to slicers that change the values based on specific selections.

    I have attached a sample file (Market Share test example) for better visualization.

    Thx
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Calculating difference between 2 market shares in a Pivot Table

    is that what you want?

    done with DataModel - PowerPivot
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-23-2018
    Location
    Beirut, Lebanon
    MS-Off Ver
    2013
    Posts
    7

    Re: Calculating difference between 2 market shares in a Pivot Table

    Dear Sandy666,

    Yes, this is pretty much what I need, but I am not able to do it in the normal Pivot solution.
    You mentioned that it is done by DataModel - PowerPivot, so I need to get that installed?

    Thx

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Calculating difference between 2 market shares in a Pivot Table

    I think you should install PowerPivot and PowerQuery to get much more possibilities for Excel. These are very powerful and useful tools Both are free add-ins from MS site - for Ex2013 Pro Plus or just upgrade to Excel 2016 where these tools are built-in.

  5. #5
    Registered User
    Join Date
    03-23-2018
    Location
    Beirut, Lebanon
    MS-Off Ver
    2013
    Posts
    7

    Re: Calculating difference between 2 market shares in a Pivot Table

    Dear Sandy666,

    Thx a lot, this was useful, I am gonna take your advice and download these tools and try to use them, I think they will help me also for future excel projects.

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Calculating difference between 2 market shares in a Pivot Table

    I hope so

    If that takes care of your original question, & to say Thanks, please click on Add Reputtion (bottom left corner of the post of the person(s) who helped you)
    then select Thread Tools from the menu (top right corner of your thread) and mark this thread as SOLVED.
    If you did it already - ignore it.
    Thank you.

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Calculating difference between 2 market shares in a Pivot Table

    In such case if you are unable to install extra add in.

    You can create a helper column for your calculation in you real data base. Here you can use below formula in you data base in D column in sheet 1 and give the header name Diff.



    D2=
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now perform the pivot table. You will now have three Fields built in Field list, Just drag the tables as per you desired view.

    Hope this will help you
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  8. #8
    Registered User
    Join Date
    03-23-2018
    Location
    Beirut, Lebanon
    MS-Off Ver
    2013
    Posts
    7

    Re: Calculating difference between 2 market shares in a Pivot Table

    Dear Shukla,

    I tried your formula and although it gives some answers, it doesn't actually give the right answers that I want, I think maybe it is because the actual data sheet is much bigger and contains much more variables than the one I attached above.

    I will try to lookup the formula that you suggested online and maybe try to understand it and then adapt it to my data sheet.

    In all cases, thx for the suggestion, now I have 2 things to try

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Calculating difference between 2 market shares in a Pivot Table

    Ok may be you are right but as per your sample data, the solution works perfectly.

    Thanks for feedback.If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  10. #10
    Registered User
    Join Date
    06-28-2019
    Location
    Chesapeake, VA
    MS-Off Ver
    2016
    Posts
    1

    Re: Calculating difference between 2 market shares in a Pivot Table

    Hi Sandy666 I was trying to download this book to see how you did the formula in powerpivot and can't open it. Are you able to help me with the Calculating difference between 2 market shares in a Pivot Table?

+ 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: 3
    Last Post: 12-03-2017, 01:41 PM
  2. Calculating ppts difference from % of column total data in a pivot table
    By TJGriffiths in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 05-10-2017, 09:49 PM
  3. Replies: 2
    Last Post: 04-16-2015, 12:12 AM
  4. Calculating Difference Pivot Row
    By sglick in forum Excel General
    Replies: 4
    Last Post: 11-25-2008, 10:14 AM
  5. Calculating shares
    By swingman39 in forum Excel General
    Replies: 4
    Last Post: 09-21-2008, 10:38 AM
  6. [SOLVED] Pivot Table Help With Market Values
    By Paperback Writer in forum Excel General
    Replies: 2
    Last Post: 02-08-2006, 10:35 AM
  7. [SOLVED] Calculating difference on Pivot Table Totals
    By PSM in forum Excel General
    Replies: 0
    Last Post: 01-12-2006, 11:40 PM

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