Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Ranking

Hi,

 

My data has multiple rows with similar values (See Source number). I need to rank source number to be able to carry out further analysis. After applying RANKX function, i get rank in the following manner. It skips numbers in between, due to multiple rows. 

 

Source NumberReasonRank
24563Null1
24563Null1
24563Invalid1
24563Invalid1
24563Invalid1
23456Null11
23456Invalid11
23456Invalid11
23456Null11
24534null6
24534null6
24534Invalid6
24534null6

 

I need my data to look like this:

 

Source NumberReasonRank
24563Null1
24563Null1
24563Invalid1
24563Invalid1
24563Invalid1
23456Null3
23456Invalid3
23456Invalid3
23456Null3
24534null2
24534null2
24534Invalid2
24534null2

 

Can you please help with the right logic

 

Thanks in Advance.

 

  •  Anonymous  change the last argument of RANKX from Skip to Dense

1 Reply

  •  Anonymous  change the last argument of RANKX from Skip to Dense