Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Below are two fields :
| S.No | Other no |
| 1 | 1 |
| 1 | 1 |
| 1 | 1 |
| 1 | 2 |
| 1 | 2 |
| 1 | 2 |
| 1 | 3 |
| 1 | 3 |
| 1 | 3 |
| 1 | 4 |
| 2 | 1 |
| 2 | 1 |
| 2 | 1 |
| 2 | 2 |
| 2 | 2 |
| 2 | 2 |
| 2 | 3 |
| 2 | 3 |
| 2 | 3 |
| 2 | 4 |
Want to achieve like this, in script itself.
| 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 |
Dear Qlik 'rs Please help with this.
Ah, my mistake. Try this:
LOAD
[S.No],
Autonumber(RecNo(),[S.No] & '|' & [Other no]) as [Other no]
FROM
....
Like this:
LOAD
[S.No],
Autonumber(RecNo(),[S.No]) as [Other no]
FROM
....
Hi Gysbert,
Code provided, gave me below result:
| S.No | Other no |
| 1 | 1 |
| 1 | 2 |
| 1 | 3 |
| 1 | 4 |
| 1 | 5 |
| 1 | 6 |
| 1 | 7 |
| 1 | 8 |
| 1 | 9 |
| 1 | 10 |
| 2 | 1 |
| 2 | 2 |
| 2 | 3 |
| 2 | 4 |
| 2 | 5 |
| 2 | 6 |
| 2 | 7 |
| 2 | 8 |
| 2 | 9 |
| 2 | 10 |
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
Ah, my mistake. Try this:
LOAD
[S.No],
Autonumber(RecNo(),[S.No] & '|' & [Other no]) as [Other no]
FROM
....
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.
PFA QVW for Reference and do the needful.
Many Thanks,
Hirish V