Forum Discussion
How to generate the RANK with reference of two other columns - dynamic Ranking
- Anonymous2 years ago
Hi Nicks612 ,
You can create a calculated column as follows.
Column = RANKX(FILTER('Table',[Sr.No]=EARLIER('Table'[Sr.No])),[DBKey],,ASC,Dense)Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous2 years ago
Hi Nicks612 ,
Below are the results achieved using power query editor.
1) First, need to group by Sr.No column.
2) Then add a custom column with the M code Table.AddRankColumn([All],"Ranking",{"DBKey"})
3) Then Expand the custom column by unchecking Sr.No column.
4) Remove the All Column..
Hi Nicks612 ,
Below are the results achieved using power query editor.
1) First, need to group by Sr.No column.
2) Then add a custom column with the M code Table.AddRankColumn([All],"Ranking",{"DBKey"})
3) Then Expand the custom column by unchecking Sr.No column.
4) Remove the All Column..
- Nicks6122 years ago
Helper I
Thanks for the reply!! I want to know how to change the DBKey column number format to a whole number. I don't want the 2.02305E+13 format. Is there any option to convert it? I have tried to overcome this issue by using Data Type options but have not succeeded. Please guide me on that.