Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to use Variable in Where Clause

Hello All,

Need your help very urgent.

i have a something like below,

Load

Week

From ABC.QVD;

vWeek=max(Week)

Sellout:

Load *

From XYZ.QVD where Week<=$(vWeek);

When i run the above script, it says field not found.

Need your help on how to use variable in Where clause.

Thanks for your help

Thanks & Regards,

Venkat T

11 Replies
rbecher
MVP
MVP

Yeah, this might work mostly in a LOAD Where clause but maybe not in a SQL Select Where clause..

Astrato.io Head of R&D
tresesco
MVP
MVP

Thanks Ralf.