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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
AAA999
Contributor III
Contributor III

Finding greatest between two dates

Gurus,

Can anyone let me know what is the function in talend for comparing 2 dates and finding the greatest?

greatest (dt1, nvl(dt2,dt1)) as date.

Thanks

Labels (2)
3 Replies
TRF
Champion II
Champion II

AAA999
Contributor III
Contributor III
Author

Thanks! TRF for your quick reply. is there a function to handle it in tmap?I am using 2 tables for comparing the date columns?
TRF
Champion II
Champion II

Join both tables with a tMap then you can compare dates from main and lookup tables using the appropriate expression based on TalendDate routines.