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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Market Share using allselected by month

Hello,

 

Is there a way to get a mesure calculating market share by month ?

 

 

market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALLEXCEPT('Fact SKU products', 'Fact SKU products'[date])), 0)

 

 

I'm currently issuing a problem that give me for denominator in the mesure the sum of all sales without taking into account my month columns in my table

(brands names are on the left hiding on the screenshot)

issue1.JPG

On the screenshot we can see that "blank" month is about 20.61% of my raw data, so the june column isn't share for june only but for both june and blank month

 

Thanks a lot for helping

 

Edit : table issued a bug with blank column, dax formula seems to be good as described in solution

 

Math

1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

@Anonymous ,

 

Maybe this one:

market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALL(TABLE[BRAND_NAME])), 0)

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
camargos88
Community Champion
Community Champion

@Anonymous ,

 

Maybe this one:

market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALL(TABLE[BRAND_NAME])), 0)

 



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Thank you Ricardo,

 

market share = DIVIDE(SUM('Fact SKU products'[sales conversion]), CALCULATE(SUM('Fact SKU products'[sales conversion]), ALL('Fact SKU products'[BRAND_NAME])), 0)

 

is working fine as my table had another not explained issue, recreated the matrice automatically deleted blank values and total is per category (month or another variable)

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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