Forum Discussion

k123's avatar
k123
Frequent Visitor
8 years ago
Solved

How to divide a column value by a measure?

Hi,   I am trying to create some measures in power bi, where I want to divide each score by the sum of scores for each group   My data looks like following:   I created a meaure to get su...
  • v-chuncz-msft's avatar
    8 years ago

    k123,

     

    You may refer to the measure below.

    Measure =
    DIVIDE (
        SUM ( Table1[score] ),
        CALCULATE ( SUM ( Table1[score] ), ALLSELECTED ( Table1[category] ) )
    )