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: 
Not applicable

Peek

Hi Friends,

   I have a small doubt in peek function. Please find the attached Excel & QVW. As per the attached excel I want to show the output in QVW. I can reach the output through If condition. But I want without if condition. please help me.

Labels (1)
2 Replies
lironbaram
Partner - Master III
Partner - Master III

hi have a look at the attach example

this is the script

DataTemp:

LOAD Name,

     ID

FROM

[peek test.xlsx]

(ooxml, embedded labels, table is Sheet1);

Data:

load *,

  if(previous(Name)=Name,Peek(ID),0) as peekid

Resident DataTemp

Order by Name, ID;

drop Table DataTemp;

alexandros17
Partner - Champion III
Partner - Champion III

Simply do:

LOAD Name,

     ID,

     Peek_ID

FROM

(ooxml, embedded labels, table is Sheet1);

There is no need of peek function ...