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

Where condition Not working with QVD Load

Facing issues,while using where condition in QVD load,

LET vDate = MakeDate(Year(Today()),Month(Today()),1);

Load * z,y,z,EndDate

from  FROM [..\..\Shared QVD\test.qvd] (qvd)

where  EndDate >= $(vDate)

13 Replies
Not applicable
Author

I tried that,now I dont get any value for EndDate as well as X...wer am I worng

maxgro
MVP
MVP

where  EndDate >= '$(vDate)';

Not applicable
Author

Looks like the number conversion worked for me...Thank You everyone!!!

jagan
Partner - Champion III
Partner - Champion III

HI,

For Dates also it will work but you have enclose variable in single quotes like below.

Try like this

LET vDate = MakeDate(Year(Today()),Month(Today()),1);

Load * z,y,z,EndDate

from  FROM [..\..\Shared QVD\test.qvd] (qvd)

where  Date(Floor(EndDate)) >= '$(vDate)';

OR  Instead of using MakeDate() you can directly use Today() like below.

LET vDate = MakeDate(Year(Today()),Month(Today()),1);

Load * z,y,z,EndDate

from  FROM [..\..\Shared QVD\test.qvd] (qvd)

where  Date(Floor(EndDate)) >= Today();

Regards,

Jagan.