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

Change load date

Hello!

I have a question aboat how i can change load date, i have a script i will load back in time with date as 2010-12-31, can i use "SET" in the beginnging of the scripr or?

I will load the script now but with the date 2010-12-31, do you understad me?

Somebody some have a idea?

Labels (1)
5 Replies
marcel_olmo
Partner Ambassador
Partner Ambassador

Hi popalm,

if what you want is to load an static date, yes, I'd load statically a variable with "2010-12-31".

I'm not pretty sure about what you want, maybe replace your reloadTime() function with this date¿?

Hope it helps!

prieper
Master II
Master II

You may assign the required date to a variable and then refer to this variable in the script. Think that you should use LET rather than SET - the latter assigns a textstring (or a formula) to a variable, whereas LET assign values or results of an expression.

LET dStartDate = DATE#('12-31-2010', 'MM-DD-YYYY');
Table: LOAD * FROM .... WHERE MyDate >= $(dStartDate);


HTH
Peter

Not applicable
Author

I have tried but with no god result, i write SET date='2010-12-31'; in the begining of the script but it doesnt works, i se also data from 2011, i dont want that.

Can you help me with what should i write in the script

Not applicable
Author

i have many table to load, must i do this for every table?

marcel_olmo
Partner Ambassador
Partner Ambassador

So what you want is to filter the loading data until "2010-12-31".

If I were you, I will try Peter's solution. You have to do a LET (evaluated variable) to set your "maximumLoadingDate", and then load the table in your script filtering by that date.

Cheers!