Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
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

May be this

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

View solution in original post

2 Replies
sunny_talwar

May be this

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

Not applicable
Author

This worked perfectly. Thank you so much!