Forum Discussion

siuchan's avatar
siuchan
Frequent Visitor
8 years ago
Solved

Percentage Sum Total

I would like to write a new measure to calculate the % of the total for the period. I can calculate the sum score for the whole table, but not by the period. Thanks,      Company    Period   Score ...
  • v-chuncz-msft's avatar
    8 years ago

    siuchan,

     

    You may try using ALLSELECTED Function.

    Measure =
    DIVIDE (
        SUM ( Table1[Score] ),
        CALCULATE ( SUM ( Table1[Score] ), ALLSELECTED ( Table1[Company] ) )
    )