Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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.