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

Problem interpreting a command in a script

Hi,

I try to use this Script:

LET v_Date_for_Update = date(today(),'YYYY-MM-DD');

bi_report:

LOAD * FROM "QVD_Files\QVD_DMG.qvd" (qvd)

where interval < $(v_Date_for_Update);

Where interval represents date in this format 'YYYY-MM-DD' (e.g. '2012-06-06').

It seems that the command interval < $(v_Date_for_Update) isn't interpret as i meant, say: interval < '2012-06-06' (with apostrophes)

but as interval < 2012-06-06, and therefore no record is returned.

How can i cause QlikView to interpret in the right way?

Thanks,

Guy

Labels (1)
1 Solution

Accepted Solutions
vincent_ardiet
Specialist
Specialist

Hi Guy,

You have the answer, just put quotes around the call of the variable : interval < '$(v_Date_for_Update)'

Regards,

Vincent

View solution in original post

1 Reply
vincent_ardiet
Specialist
Specialist

Hi Guy,

You have the answer, just put quotes around the call of the variable : interval < '$(v_Date_for_Update)'

Regards,

Vincent