+ Reply to Thread
Results 1 to 2 of 2

Power pivot - calculating market share per segment

  1. #1
    Registered User
    Join Date
    08-09-2023
    Location
    Rotterdan, the Netherlands
    MS-Off Ver
    Microsoft 365 enterprise
    Posts
    1

    Power pivot - calculating market share per segment

    Sample.xlsx

    Hi everyone,


    I'm working in a CPG company and want to set up a power pivot to calculate shares for me. However when I set up the calculation in the Power Pivot itself, you will see that the value share is all 100% per product or a % of the total value sales instead of the value share of country A or B (segment).


    What I'm looking for is the value share per product in Country A or B like the column in green (manually calculated). Can someone please help me how to do this and which DAX formula is best to use?

    thanks for your help!

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

    Re: Power pivot - calculating market share per segment

    Perhaps this will help.
    1. Produce a second table where distinct country names are listed and then cumulative stats are calculated using formulas like: =SUMIFS(Table1[Value Sales Year Ago],Table1[[Country]:[Country]],$H2)
    2. Add the second table to the data model
    3. Make a 1 to many connection between the two tables in the data model
    4. Modify the Total value Year ago function to read: =sum(Table1[Value Sales Year Ago])/SUM(Table2[Value Sales Year Ago])
    5. As modeled on the Pivot Table 2 sheet the function now displays the disired results
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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: 12-17-2021, 08:41 AM
  2. [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
  3. [SOLVED] Time Series Forecast based on market share (market penetration)
    By mils in forum Excel General
    Replies: 5
    Last Post: 02-17-2014, 09:40 AM
  4. How to calculate market growth and market share?
    By keesberbee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-12-2013, 02:42 AM
  5. Market Share
    By seikho in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 08-31-2012, 05:27 PM
  6. [SOLVED] Share of Excel in the market
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 05-12-2006, 07:50 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