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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Market share across selected segments

Hi PWBI experts!

 

I'm wondering how to calculate the share of Company B across selected Segments 2 and 3.

Please notice that Company B has no Sales in Segment 3, but I still want to consider Segment 3 when computing the Share for Company B.

 

My issue is that when I'm filtering Segment 2 and 3 with a Slicer and I'm filtering Company B with a Slicer, the denominator of my Share gets filtered to only contain Segment 2, and Segment 3 is "indirectly filtered out".

 

Here the screenshot:

Share calculation.JPG

 

The measures I'm using are the following:

Value SOM = SUM('table'[Sales])/[CY SLS TOT]
CY SLS TOT = CALCULATE(SUM('table'[Sales]),ALL(table[Company]))
 
Thanks a lot for your help!
Anna
1 ACCEPTED SOLUTION
wdx223_Daniel
Super User
Super User

@Anonymous if the slicers came from dimension table, then it might be simpler to reslove.

wdx223_Daniel_0-1606699689705.png

or like this

wdx223_Daniel_1-1606700098483.png

 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @wdx223_Daniel 

It is working! 😊

I thought that with a DAX measure we would solve it, buuut maybe another day jiij

Thanks a lot!

Anna

wdx223_Daniel
Super User
Super User

@Anonymous if the slicers came from dimension table, then it might be simpler to reslove.

wdx223_Daniel_0-1606699689705.png

or like this

wdx223_Daniel_1-1606700098483.png

 

 

Anonymous
Not applicable

Hi @Nathaniel_C 

 

Thanks a lot for taking a look at it!

It might definitely solve it, but we are managing several companies and segments, so this sort of data transformation/logic you are suggesting it's something we want to avoid.

 

I'm sure it should exist a set of DAX measures to compute it, but I'm struggling to find it.

I've been trying to use ALL(), ALLEXCEPT(), ALLSELECTED(), REMOVEFILTERS(), but nothing seems to give me the right output.

 

Thanks again for your suggestion, appreciate that!

Anna

 

Hi @Anonymous ,
Let's call on Super User @jdbuchanan71  to see if he is available....

Nathaniel





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

Proud to be a Super User!




Nathaniel_C
Community Champion
Community Champion

Hi @Anonymous ,
Try adding a row to your table that shows segment 3 for B as 0. That will keep the value for segment 3.

SOM1.PNG

 


SOM.PNG


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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