Forum Discussion

Giada90's avatar
Giada90
Helper IV
3 years ago
Solved

weighted score

Hi,

I have an excel like this:

typescore
a1
b0.5
c0.2
d0
  

 

The total value of the question is 0.4, I need to change the value proportionally of 0.4

Which formula can I use?

Thanks

  • 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.

     

1 Reply

  • 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.