Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
apthansh
Creator
Creator

Date where clause in load script

HI I have script as below and I only want to pick one date ie whichever is latest so I gave max(Date) in where clause.

Load

ID,

Date

From

[Soure]

WHERE Date = Max(Date);

This is not working

My Date format is as follows ;   2015-12-01 00:00:00

Thanks Much

10 Replies
sasiparupudi1
Master III
Master III

MaxDate:

Load

Max(date) as MaxDate

From

[Source]

;

Let vMaxDate=Date(Floor(Peek('MaxDate',0,'MaxDate')));


Load

ID,

Date

From

[Soure]

WHERE Date(Floor(Date))='$(vMaxdate)'

;