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

Date Compare

I guys, I have this line of code:

Load

               max(Data) as maxDate

Resident Calendar ;

Let vMaxDate = Date($(varMaxDate));

DROP Table Temp;

Table:

LOAD id

     MakeDate(year, month, day) as DateTb,

     effort

FROM

[path ...]

(ooxml, embedded labels, table is xtmp);

TableDate:

LOAD *

Resident Table

where DateTb > $(vMaxDate);

The last part of the script (TableDate) doesn't work, and load all date.

Someone can tell me why the "where" clause doesn't work?

Thanks

Labels (1)
4 Replies
trdandamudi
Master II
Master II

May be the where condition is as below:

where DateTb > $('vMaxDate');   <-- see the single quote within the bracket

Anonymous
Not applicable
Author

where DateTb > $('vMaxDate');


Are the fields in the same format??



sunny_talwar
MVP
MVP

How do you define varMaxDate?

Capture.PNG

Anonymous
Not applicable
Author

Hi guys, I resolved in this way:

   

Where Date(DateTb) > '$(vMaxDate)';