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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load max date for a row of data

I am loading a table with some date fields in Qlik Sense:

LOAD

  TRIM(DATE(Date1)),

  TRIM(DATE(Date2)),

  TRIM(DATE(Date3))

FROM ...

;

I want to add 1 more field that holds the distinct maximum date from the 3 date fields above for that row of data.

Each of these date fields (as well as the new maximum date field) can be null.

How do I do this?

Thank you.

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Date(RangeMax(Date1, Date2, Date3)) as MaxRowDate

View solution in original post

2 Replies
sunny_talwar
MVP
MVP

May be this

Date(RangeMax(Date1, Date2, Date3)) as MaxRowDate

Not applicable
Author

This worked perfectly. Thank you so much!