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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

Please assist.

Hi All ,

How can I compare value of one row field with the other row of same field .

For eg,

Non.PNG

if previousdealid value match the 1 elso 0.

My requirement

For eg,

my result should have id -

328

1653

3373

3385

16799

172629

17361

21799

I tried to use peek() and previous() in script but not working. Please assist .

"OpenUser_final3":

NoConcatenate

LOAD

*,

if(previousdealid=Previous(previousdealid),Null(),Previous(previousdealid)) as flag

Resident "OpenUser_final2"

;

Labels (1)
1 Reply
rubenmarin

Hi Suvechha, using previous is almost required to use an 'order by' clause to sort the records, in this case it can be:

Order by previousdealid, DateJoinedKeyPL;

Or you can join both tables by dealerid to have both fields in the same row in date model.