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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Order the rank based on group

Following is the requirement.  With using old rank and need to create sequence, could you please say components need to use for the same? I have ordered the rank and used sequence, but not sure like taking the prodId as group

 

Input
ProdId Rank
101   2
101   3
101   4
102   3
102   4
102   5


Output
ProdId Rank
101   1
101   2
101   3
102   1
102   2
102   3

 

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

 

    You can use the below job snippet to do it. I got the result as per your requirement.

 

0683p000009Lytn.png

 

 

The tmap is as shown below. I have given the value of Prod_Id as the input for generating sequence number.

0683p000009Lygr.png

 

 

Please mark the topic as solution provided if the answer has helped to resolve your issue.

 

Warm Regards,

 

Nikhil Thampi

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Hi,

 

    You can use the below job snippet to do it. I got the result as per your requirement.

 

0683p000009Lytn.png

 

 

The tmap is as shown below. I have given the value of Prod_Id as the input for generating sequence number.

0683p000009Lygr.png

 

 

Please mark the topic as solution provided if the answer has helped to resolve your issue.

 

Warm Regards,

 

Nikhil Thampi

Anonymous
Not applicable
Author

Thanks it helped
Anonymous
Not applicable
Author

Hi,

       Happy to help you.

 

       Enjoy programming in Talend 🙂

 

Warm Regards,

 

Nikhil Thampi