Forum Discussion
Creating a market share
- 7 years ago
Anonymous
Create a measure like the following:
% Share = VAR Volume = SUM('Table'[Sales]) VAR AllVolume = CALCULATE ( SUM('Table'[Sales]),ALL('Table'[Calcuated_Column]) ) RETURN DIVIDE ( Volume, AllVolume )And then create a new Table object and add your calculated column as dimension and next to it add then above measure
Anonymous
Create a measure like the following:
% Share =
VAR Volume =
SUM('Table'[Sales])
VAR AllVolume =
CALCULATE ( SUM('Table'[Sales]),ALL('Table'[Calcuated_Column]) )
RETURN
DIVIDE ( Volume, AllVolume )And then create a new Table object and add your calculated column as dimension and next to it add then above measure
- Anonymous7 years agoNot applicable
Thank you themistoklis!
What if I want to add another slicer for the products?
- themistoklis7 years agoCommunity Champion
Anonymous
Can you please explain further what you are trying to do with the new slicer?
- Anonymous7 years agoNot applicable
themistoklisWell, your measure works for calculating the share of the products from the calculated column but when I select a product from that column from a slicer it seems to divide itself and the result is always 100%. What I want is to have a product slicer where, when i select some of the products from that category, it shows their share.