+ Reply to Thread
Results 1 to 5 of 5

Calculating marked shares per company each year in Pivot based on sales figures

  1. #1
    Registered User
    Join Date
    03-17-2021
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    3

    Calculating marked shares per company each year in Pivot based on sales figures

    Hi

    I am working with a dataset consisting of yearly sales figures for different suppliers.
    I want to look at marked shares per supplier for each year.
    When I Use pivot table I can right-click on the sales numbers and choose "show as % of column sum" and get the numbers i want.

    The problem occurs when I use a slicer to look at one or a couple of the companies. The marked share then changes and does no longer show the market share, but the % of sales in that selected group.
    How can I fix this problem?

    The attached excel-file is just an example, but my problem is illustrated under the "pivot" sheet.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Calculating marked shares per company each year in Pivot based on sales figures

    Hello Edsberg and Welcome to Excel Forum.
    As you are using the 365 version of Excel you could use Power Pivot to do what you want (see Sheet1 in the attached file).
    1. Add the table on the Data sheet to the data model.
    2. Add the following measure to the data model:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Format the Market Share measure as percentage with two decimal places.
    4. In the pivot table put Company in the Rows area, Year in the Columns area and Market Share in the Values area.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    03-17-2021
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Calculating marked shares per company each year in Pivot based on sales figures

    Perfect solution to my problem, thank you!

  4. #4
    Registered User
    Join Date
    03-17-2021
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Calculating marked shares per company each year in Pivot based on sales figures

    Quote Originally Posted by JeteMc View Post
    Hello Edsberg and Welcome to Excel Forum.
    As you are using the 365 version of Excel you could use Power Pivot to do what you want (see Sheet1 in the attached file).
    1. Add the table on the Data sheet to the data model.
    2. Add the following measure to the data model:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    3. Format the Market Share measure as percentage with two decimal places.
    4. In the pivot table put Company in the Rows area, Year in the Columns area and Market Share in the Values area.
    Let us know if you have any questions.

    Thank you so much for the helpful reply What would the formula be if I didn't have the sales amount, but wanted to calculate market share based on the number of transactions?
    The example is illustrated in the attached file.
    Attached Files Attached Files

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,526

    Re: Calculating marked shares per company each year in Pivot based on sales figures

    The DAX formula could be:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that you'll need to go to the Data Model and select Refresh All so that the new tabell1 will load.
    Let us know if you have any questions.

+ 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] Calculating difference between 2 market shares in a Pivot Table
    By FAZIWAZI in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 07-01-2019, 11:01 AM
  2. Replies: 1
    Last Post: 12-05-2015, 04:04 PM
  3. cumalitive figures based on budget and sales
    By Sue DeNimm in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-31-2014, 04:21 PM
  4. Pivot Table to analyse sales figures
    By mj04 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-21-2014, 09:54 PM
  5. Sales spreadsheet - help with converting figures to % based on targets
    By tallonarcus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2011, 07:21 AM
  6. Replies: 2
    Last Post: 10-26-2010, 01:26 PM
  7. Replies: 0
    Last Post: 04-18-2006, 02:10 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