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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
varma8998
Contributor III
Contributor III

How to use the peek function

HI All,

I need help by using peek function how we will get the data from one table to another table

I have two tables

Table1:

Sl.No   Type     Method   Amount

1          XXX      AAA       1234

2          YYY     BBB         5678

3          ZZZ     CCC         91011 

4          AAA     DDD        121314

5          BBB     EEE         151617

Table2:

Sl.No Date

1        06/30/2019

2        09/30/2019

3        03/31/2019

I need the output in the data manager table in the below format is that possible

Output: in data manager table

Sl.No   Type     Method   Amount   Date

1          XXX      AAA       1234        06/30/2019

2          YYY     BBB         5678       06/30/2019

3          ZZZ     CCC         91011      06/30/2019

4          AAA     DDD        121314     06/30/2019

5          BBB     EEE         151617     06/30/2019

3 Replies
dazerano
Partner - Contributor II
Partner - Contributor II

Peek is not the function required for this. You could Join the tables but I would recommend using applymap() in this case:

MapDate:

Mapping

LOAD

   Sl.No ,

   Date

From Table1

 

LOAD

APPLYMAP('MapDate',Sl.No ,null())    AS Date

FROM Table2

varma8998
Contributor III
Contributor III
Author

Hi,

 

I am getting error can u please help me with script

dazerano
Partner - Contributor II
Partner - Contributor II

What error are you getting? Can you post your script?