Forum Discussion
Ranking/ preferences questions
- Anonymous6 years ago
Hi Anonymous ,
The calculation is based on Value * Count of Values
So base location has value 3, 5, 2, 3 ,5 , 4. Value comes to 5*2 + 4*1 + 3*2 + 2*1 = 22 (See the pbix by filtering baselocation in the data view)
Now since 5 is least preferred, base location will get the highest preference i.e the bar of base location will be highest which is what you do not want as base location is least preferred and should have the smallest bar.
Thus new value just reverses your values i.e 5 becomes 1 and 1 becomes 5 . Thus a new Value coumn was calculated. This will give you the base location value as 14.
Value become 22 if you put Value in the visual below. Become 14 when New Column is put in the image below.
But Calculation is on weighted average.
Thanks and Regards,
Harsh Nathani
Hi Anonymous ,
Please find the link to the file.
https://drive.google.com/file/d/1X_-r0zB9QvP5f9lGh9ZdY4Mbnb4zpxd5/view?usp=sharing
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Thanks. Anonymous ,for doing this but i think this is not quiet right as you are just switching values but what we should be doing is multiplying total response (as response is count of each selected option) for each option such as if out of 265 respondents115 people selected working from home as first option and 100 slected office as seecond preference and 50 put cafe as their least preferred option.
I want to calculate Total in the below table but need this Dax
I need help with DAX with , where we say, If Question is "Home and Answercode-1 then multiple response (which also a measure and count of total who selected option 1) with 3 and if Question is "office" and answer-code-2 then multiple response with 2, and if Question is "Cafe" and answer-code-3 then multiple response with 1"
| Question | Answer-code-1 | Answer-code-2 | Answer-code-3 | DAx needed for this | Total |
| home | 115 | 100 | 50 | =115*3+100*2+50*1 | 615 |
| office | 100 | 115 | 50 | =100*3+115*2+50*1 | 580 |
| cafe | 50 | 50 | 165 | =50*3+50*2+165*1 | 415 |
Thanks.
- Anonymous6 years agoNot applicable
Hi Anonymous ,
The calculation is based on Value * Count of Values
So base location has value 3, 5, 2, 3 ,5 , 4. Value comes to 5*2 + 4*1 + 3*2 + 2*1 = 22 (See the pbix by filtering baselocation in the data view)
Now since 5 is least preferred, base location will get the highest preference i.e the bar of base location will be highest which is what you do not want as base location is least preferred and should have the smallest bar.
Thus new value just reverses your values i.e 5 becomes 1 and 1 becomes 5 . Thus a new Value coumn was calculated. This will give you the base location value as 14.
Value become 22 if you put Value in the visual below. Become 14 when New Column is put in the image below.
But Calculation is on weighted average.
Thanks and Regards,
Harsh Nathani
- Anonymous6 years agoNot applicable
@Thank you very much for your help Anonymous