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: 
Anonymous
Not applicable

Dynamic sort order generation

Hi All,

     I have data in my source system as mentioned below:

s_name Sort Order
P+1
P-2
A+3
A-4
B+5
B-6
Client9999
Consultant9999
Home Office9999
Inactive Dealer9999
Prospect9999
Terminated Client9999
_(Null)9999

As we want replace 9999 with following sequence if any one adds new s_name and gives 9999 it should be marked with correct sort order.

Here is the output we are looking for :

s_name Sort Order
P+1
P-2
A+3
A-4
B+5
B-6
Client7
Consultant8
Home Office9
Inactive Dealer10
Prospect11
Terminated Client12
_13
0 Replies