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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load scrip Problem

I am loading a table, call it SelectionDates, that has four dates in it. I want the next table that loads to load with a Where statement that looks at the dates from the SelectionDates table and filters the data.

Can seem to get it to work.

Thanks,
Stephen

5 Replies
prieper
Master II
Master II

Have a look into the EXISTS-functionality, which allows a filtering according to previously loaded values.

HTH
Peter

Not applicable
Author

Thanks Peter. Still having problems. I need a statement with will look at the first date that the second date and give all records that equal to or between the two dates. Like "Where TransactionDate >= 1/1/2009 and TransactionDate <=12/31/2009" But the dates are from the first table loaded.

thanks,
Stephen

johnw
Champion III
Champion III

Perhaps use peek() to find your values and assign them to variables, then reference the variables when doing the second load? Or alternatively use the variables to generate all TransactionDates between the two dates, then load where exists(TransactionDate).

Not applicable
Author

Have tried peek, put into a variable (vstartdate) but the script then says cant find field "vstartdate". I have tried puting the peek statement in the where statement also. The script runs but no records are returned.

Hummmmm

Not applicable
Author

Got it working. I needed a $ in front of the variable in the where statement.