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
Anonymous , create a subcategory Rank in unpivot position; preference Rank and Option(Office, home) filter for 1
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
unpivot: https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
- Anonymous6 years agoNot applicable
Thanks amitchandak for your reponse. Where shell i add the subcategory in Power query where i unpivot the question and answer or just in data view of the table?
Thanks