Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Creating a market share

Hi Guys,   I want to create a market share type of measure but i have i bit of a complicated and large data.   I thought of using a measure where i divide the selected data from me by another sel...
  • themistoklis's avatar
    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