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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

How to use lag function in qlikview

Hi Team,

Below expression I need to write in qlikview in backend script. Can anyone please help me in this

Lag(appl_id) over (partition by key order by open date  asc) prev_id.

Thanks in advance,

Thanks,

Chinnu.

Labels (1)
3 Replies
sunny_talwar
MVP
MVP

I think Qlik equivalent of lag might be

Peek() vs Previous() – When to Use Each

chinnu123
Creator
Creator
Author

Hi Sunny,

Thanks for your reply,

Can you please tell me which one I can use for above expression

Thanks,

Chinnu.

sunny_talwar
MVP
MVP

I am not 100% sure what your SQL is doing... but in general both Previous and Peek look at the values in the previous rows while loading the data... may be share input and output based on your SQL and we can help you with the QlikView script