Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
HirisH_V7
Master
Master

Create a sort order based on a Field

Below are two fields :

S.NoOther no
11
11
11
12
12
12
13
13
13
14
21
21
21
22
22
22
23
23
23
24

 

Want to achieve like this, in script itself.

S.NoOther no
11
12
13
14
11
12
13
11
12
13
21
22
23
24
21
22
23
21
22
23

 

Dear Qlik 'rs Please help with this.

 

HirisH
“Aspire to Inspire before we Expire!”
Labels (2)
1 Solution

Accepted Solutions
Gysbert_Wassenaar

Ah, my mistake. Try this:

 

LOAD
    [S.No],
    Autonumber(RecNo(),[S.No] & '|' & [Other no]) as [Other no]
FROM
    ....

talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Like this:

LOAD
    [S.No],
    Autonumber(RecNo(),[S.No]) as [Other no]
FROM
    ....

 

 


talk is cheap, supply exceeds demand
HirisH_V7
Master
Master
Author

Hi Gysbert,

Code provided, gave me below result:

S.NoOther no
11
12
13
14
15
16
17
18
19
110
21
22
23
24
25
26
27
28
29
210



But I need it like this, As my post, From above data provided.

S.No ,Other no
1 ,1
1, 2
1 ,3
1 ,4
1, 1
1 ,2
1 ,3
1 ,1
1 ,2
1, 3
2 ,1
2, 2
2 ,3
2,4
2 ,1
2 ,2
2 ,3
2 ,1
2 ,2
2 ,3

 

Thanks,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Gysbert_Wassenaar

Ah, my mistake. Try this:

 

LOAD
    [S.No],
    Autonumber(RecNo(),[S.No] & '|' & [Other no]) as [Other no]
FROM
    ....

talk is cheap, supply exceeds demand
HirisH_V7
Master
Master
Author

Hi My main objective is not to have a same Name in sequence when i select any S.no  as below, all should be shuffled but not in sequence. pl help me with this.

Capture.PNG

PFA QVW for Reference and do the needful.

 

Many Thanks,

Hirish V

HirisH
“Aspire to Inspire before we Expire!”