Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Lookup -it is not working

I have data looks like below

DocumentItemMaterialStartDate
89100234890-1/1/2009
891002348910xx1-
891002348920xx21/2/2009
891002348921xx3-
891002348930xx1-
891002348940xx2-
891002348941xx3-


If the Startdate has a value null -I have to pickup the startdate value which is posted on the item level 0 and update the value

of startdate for line item 10,21,20,40,41.(it is huge amount of data)

I tried with lookup didn't worrk.

advance thanks for your help on this issue

2 Replies
martin59
Specialist II
Specialist II

Hi,

You could use the peek() function


LOAD *,
if(isnull(StartDate),peek(StartDate,-1),StartDate) as NewStartDate;
LOAD...
FROM...;


Is that you want ?

Martin

Not applicable
Author

Problem is fixed . Thanks for support.Apply map worked for this scenario.