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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How can I store the Last row in another table also

Hi All,

I am selecting data from a table.
and while doing transformation, I need to store "last row" data in another table also.

Can any one help me in finding out the last row?

Thanks in Advance.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,
You can try to do this with Numeric.Sequence but it's quite complex.
1. you create a file which contains a numeric sequence, this file has to be sorted by desc. You also add this sequence on your source table, no need to add it in your database, just use a tBufferOuput or a temporory file which contains each row+numsequence.
2. Make a innerjoin based on their sequence. The tFileInput should have a limit to 1, so it will only read the 1st line, ie the highter sequence number.

View solution in original post

2 Replies
Anonymous
Not applicable
Author

Hi,
You can try to do this with Numeric.Sequence but it's quite complex.
1. you create a file which contains a numeric sequence, this file has to be sorted by desc. You also add this sequence on your source table, no need to add it in your database, just use a tBufferOuput or a temporory file which contains each row+numsequence.
2. Make a innerjoin based on their sequence. The tFileInput should have a limit to 1, so it will only read the 1st line, ie the highter sequence number.
Anonymous
Not applicable
Author

Thank you very much