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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
wood
Contributor III
Contributor III

Automatic generation of serial Numbers

 

hi all

How do You generate field 2 from field 1 in a script

Filed1, Filed2
A, 1
B ,1
B ,2
C, 1
C, 2
C, 3
D ,1
D ,2

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Try this

LOAD *, AutoNumber(RecNo(), Filed1) as Filed2 Inline [
Filed1
A


C
C
C
D
D
];

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
Anil_Babu_Samineni

Try this

LOAD *, AutoNumber(RecNo(), Filed1) as Filed2 Inline [
Filed1
A


C
C
C
D
D
];

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
wood
Contributor III
Contributor III
Author

Good, thank you very much!