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: 
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)'

;