Skip to main content
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

3 Replies
Anil_Babu_Samineni

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

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