Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.