Forum Discussion

Giada90's avatar
Giada90
Helper IV
3 years ago
Solved

weighted score

Hi, I have an excel like this: type score a 1 b 0.5 c 0.2 d 0       The total value of the question is 0.4, I need to change the value proportionally of 0.4 Which form...
  • v-jianboli-msft's avatar
    3 years ago

    Hi Giada90 ,

     

    Based on your description, I have created a simple sample:

    Please try:

     

    Measure = 
    var _totalvalue = 0.4
    var _sumofscore = CALCULATE(SUM('Table'[score]),ALL('Table'))
    var _percentage = DIVIDE(SUM('Table'[score]),_sumofscore)
    return _totalvalue*_percentage

     

    Final output:

    Best Regards,

    Jianbo Li

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.