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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors