Forum Discussion
Ranking
- 8 years ago
Add the column you are Ranking I couldn't see the name in your picture above.
Rank Measure = IF ( HASONEVALUE ( FINAL_TBL[Column you are Ranking] ), RANKX ( ALL ( FINAL_TBL[Column you are Ranking] ), [TOT_QTY] ) )
Hello everyone,
I am trying to rank my table records in order to standard deviation of a column. The following SS shows how is my generic approach is wrtitten to achieve the rankings and I did the same for median values for the same column and it worked without any problem. So, here is how my function looks like:
This returns me 1 as the rank of each record. However when I change STDEV.P to MEDIAN it works pretty well
For more clearance, I am adding indices devided by a big number to prevent having the same rank for same values. That's why you see a sum there.
So, could anyone help me out and explain what is the problem here or how to create a stable ranking function for my tables please?
Thanks in advance,
Cheers!