Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

help in script

hi all,

can anyone help to achieve the below result.

i have attached the sample data below.  need to apply the below 3 cases.

1. if type='cancel' take the 'id' and find the same 'id' from the previous record and delete both the records.

2. if mid=id then update the old record amt & hd_amt from the new record (as per date).

3. if if id>1 the only keep the latest record (as per date) drop all other rows for the same which contains the same id.

can refer 'expected result' in the same excel file for the output which i require.

thanks in advance

2 Replies
vkish16161
Creator III
Creator III

No file attached

Anonymous
Not applicable
Author

sorry missed the attachment before. PFA thnx