Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Select the last Date in the field into the Script

Hello,

I would like to assimilate to the named 'Last_Update_NBI' the last Date present into the field [AIR Import Data], so i did this into the script:

load Distinct [AIR Import Data] as LastAsOf

resident [FinalTable];

Let Last_Update_NBI = Date(Peek('LastAsOf'), 'DD/MM/YYYY');

But it return that:

Capture.PNG

Where 31/12/2015 is considered as the last value by QlikView 😕

I tried to use the MAX() function but it doen't work.

How can i do that please ?

Thanks you in advance for your help,

Sébastien.

12 Replies
sunny_talwar

Agreed, unless another type of format is desired using the Date() function it won't make a difference

Anonymous
Not applicable
Author

Yes !

sunny_talwar

Great