Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Akina0929
Creator
Creator

how to assign ranking to duplicate values?

hi,

  I have a field ID , that consist values like following,

ID

A

A

A

A

B

B

B

C

C

C;

   I want assign ranking to that field like

ID, Rank

A,1

A,2

A,3

A,4

B,1

B,2

B,3

C,1

C,2

C,3

please help me, how can i achieve

Thanking you,

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Look here

LOAD ID, AutoNumber(RowNo(),ID) as Rank Inline [

ID

A

A

A

A

B

B

B

C

C

C];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
sunny_talwar

May be this

LOAD ID,

           AutoNumber(RowNo(), ID) as Rank

FROM ...

Anil_Babu_Samineni

Look here

LOAD ID, AutoNumber(RowNo(),ID) as Rank Inline [

ID

A

A

A

A

B

B

B

C

C

C];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful