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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
harleen_singh
Creator III
Creator III

calling orderdate into 2nd table from first table

Hello,

          i am writing this code

        Load

       orderdate, A, B,C from table1

Load

if(IsNull(EndDate),max(orderdate),EndDate) as EndDate,

StartDate,

TerritoryID From

Table2

the above code gives error?? how to solve it?

thanks
Lavi

10 Replies
harleen_singh
Creator III
Creator III
Author

Lukasarn,

             i have done by creating Temporary table

Temp:

LOAD

num(max(OrderDate)) as MaxDate

Resident Table1;

LET vMaxDate = peek('MaxDate', 0, 'TEMP');

Drop Table Temp;

Now i can use this variable VMaxDate any where.

thanks for your kind help

Regards
Lavi