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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Inserting row number dynamically

Hi,
I have an XML file from which I extract the fields using tXMLMap component.
Along with these field values I have to insert a row number for each row inserted.
Any idea how this can be done?
Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Ketan,
You can use Numeric.sequence expression in your tMap to increment a variable.
For exemple : Numeric.sequence("var1",1,1)
The second "1" is the starting number, the last "1" is to increment by 1, and the new value is saved into "var1".
Devy

View solution in original post

4 Replies
Anonymous
Not applicable
Author

How about using function for generating sequence ?
Vaibhav
Anonymous
Not applicable
Author

How about using function for generating sequence ?
Vaibhav

Do you mean I should create an SQL function for this? Is it not possible through Talend?
Anonymous
Not applicable
Author

Ketan,
You can use Numeric.sequence expression in your tMap to increment a variable.
For exemple : Numeric.sequence("var1",1,1)
The second "1" is the starting number, the last "1" is to increment by 1, and the new value is saved into "var1".
Devy
Anonymous
Not applicable
Author

https://faihofu.blogspot.com/2019/10/talend-rownumber-functionality-using.html
is this blog post any use?

 

it uses tMap to mimic the tsql row_number() over (partition by....) windows function