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

load serial, Max(log_date), logged_value

Hi All,

I need some help here.  I have 3 fields: AC_SERIAL, LOG_DATE and LOG_VALUE.

I want to load in the max(log_date) for each aircraft and return the single log_value for that date.  I need help.  Thanks.

1 Reply
swuehl
MVP
MVP

Try

Load    

AC_SERIAL ,

max(LOG_DATE),

FirstSortedValue(LOG_VALUE, -LOG_DATE )

FROM ... GROUP BY AC_SERIAL;