Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ThisIsMyRealNam
Regular Visitor

monthly market share for each product by account

Hi everyone,

 

I'm a complete newbie. I'm just playing with a dataset that I have living in excel. 

 

It is monthly sales on all accounts.

Packs are 5 different products

 

What I would like to create is a monthly market share for each product on each account. For the life of me i've done my head in trying to get this together in my spare time.

 

Many thanks for any help 

 

Capture.PNG

1 ACCEPTED SOLUTION

Hi @ThisIsMyRealNam,

 

Suppose the data table is named as 'Market Share'. Please create a measure referring to below formula:

Percentage =
CALCULATE (
    SUM ( 'Market Share'[Units] ),
    ALLEXCEPT ( 'Market Share', 'Market Share'[OutletID], 'Market Share'[Pack] )
)
    / CALCULATE (
        SUM ( 'Market Share'[Units] ),
        ALLEXCEPT ( 'Market Share', 'Market Share'[OutletID] )
    )

Insert a Matrix visual to display data.

4.PNG

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
TomMartens
Super User
Super User

Hey,

welcome to the forum, and welcome to the mysteries and pleasures of Power BI

 

Before I'm able to help you with your dataset, I need a little more information

  • what is the market
    all outlets or is each outlet a separate market?
  • what is the product?

Regards



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

each outlet is its own market.

 

However all accounts total to the national market.

 

Each product is a pharmaceutical drug and is interchangeable.

 

So 1 outlet may buy 20 of product 2 and 40 of product 3 and 8 of product 4 

 

Ideally i would want to get to the point that in that example

 

Product 2 has a 29.4% 

Product 3 has 58.82%

Product 4 has 11.7% market share

 

at the outlet level.

 

Thanks so much for any help

Hi @ThisIsMyRealNam,

 

Suppose the data table is named as 'Market Share'. Please create a measure referring to below formula:

Percentage =
CALCULATE (
    SUM ( 'Market Share'[Units] ),
    ALLEXCEPT ( 'Market Share', 'Market Share'[OutletID], 'Market Share'[Pack] )
)
    / CALCULATE (
        SUM ( 'Market Share'[Units] ),
        ALLEXCEPT ( 'Market Share', 'Market Share'[OutletID] )
    )

Insert a Matrix visual to display data.

4.PNG

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.