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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
anushahegde
Contributor III
Contributor III

Sql equivalent of qlikview script

Hi all,

I want to know how to write the below statement in SQL. Could anyone help me with this please?

if([Customer Number]=Previous([Customer Number]),Peek('Sequence')+1,1) as [Sequence]

Thanks in advance

Anusha

Labels (1)
1 Reply