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
Anonymous
Not applicable

Help with calculating Market Share using DAX code

Hi there!

 

I am trying to calculate market share for a specific segment, which I have shown in a table. However, since there are a large number of players, I've filtered the table down to just show the top 15. Obviously, doing $ as a percent of total on the new table makes the sum of the $ for the top 15 players the denominator, not the sum of all players in that segment (what I want to calculate share in the segment).

 

I've tried DAX code in a variety of different ways, but I can't seem to get it to work. My challenge is that the "Rank" figure I am using to calculate the top 15 is a measure, and you can only use "ALLEXCEPT" on a column, not a measure. I am live connected to Analysis Services, so unfortunately this is the only option I have to define the rank.

 

Does anyone have a suggestion for how I can get the table to show segment market share? 

 

Let me know if this makes sense. Thanks in advance for your help!

 

Hannah

1 REPLY 1
Anonymous
Not applicable

More precision, please, and pictures. Make it as clear as possible. Remember that we have not worked on your data and model, so we're completely in the dark about what you're trying to do. If people can't figure out what it is you're trying to achieve, they will not help you.

 

Thanks.

 

Best

Darek

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.

Top Solution Authors