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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can i get latest date(Max Date) in my date column

Hi Guys,

i have a publish date() column.. in that  each  id have multiple dates. but i   need to show up only latest publish date in my table.

how can i get latest date  in my table. when i used  max(publishdate)  am not getting.

please help me out.

12 Replies
Not applicable
Author

Hi,

Try like this:

=aggr(MaxString(publishdate),id)

Not applicable
Author

try this

firstsortedvalue(id,-publisheddate)

Anonymous
Not applicable
Author

Hi,

You can create a new table with the field MaxDate to get your max(date).

Example:

Table1:

Load

A,

B,

Date(Date) as Date

From

YOURTABLE;

Table2:

LOAD

Date(Max(Date)) as MaxDate

Resident

Table1;