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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
chinnu123
Creator
Creator

Need help on converting SQl code to qlik code

Hi Team,

Please help in converting below sql code to qlik

select Status,

lag(Status) over (partition by Incident_Id order by ROW_UPDATE_DATE) previous_Status

ROW_UPDATE_DATE

from TableA

Labels (1)
3 Replies
Anil_Babu_Samineni
MVP
MVP

Look for Previous ‒ QlikView

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
chinnu123
Creator
Creator
Author

Hi Anil,

Thanks for your quick reply,

I tried by using previous but I don't know I am missing something So can you please share the  expresion by using preivious

Thanks,

Chinnu

Anil_Babu_Samineni
MVP
MVP

In fact, SQL also works with QIX engine. You can just copy and run. or else Peek() vs Previous() – When to Use Each

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