Forum Discussion
Giada90
3 years agoHelper IV
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 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*_percentageFinal 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
- v-jianboli-msftCommunity Support
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*_percentageFinal 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.