Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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