Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
jcharles
Contributor III
Contributor III

How do I create another column in the same table that takes the max date from 3 other date columns

I would like to know how to create a new column called "ClosedStatusDate" in the table below and then the data in this column should be the max date out of the 3 columns called "Date Finalised", "Date Closed" and "Date Converted" (Whichever has the last date). If there is no date then "ClosedStatusDate" will be blank.

Please help? Should be fairly easy but I'm a beginner. Thank you

The table looks like this:

Case IDDate ReportedDate FinalisedDate ClosedDate Converted
1234529/10/200931/11/201302/02/2011
1234623/05/201204/02/2014
1234701/03/201314/06/2013
1234822/01/201424/01/2014
1234931/01/2014
1 Solution

Accepted Solutions
Not applicable

I would use the rangemax() function

LOAD ..., Rangemax(Field1, Field2, Field3) as xxx

FROM ...

Fabrice


View solution in original post

5 Replies
Not applicable

I would use the rangemax() function

LOAD ..., Rangemax(Field1, Field2, Field3) as xxx

FROM ...

Fabrice


jcharles
Contributor III
Contributor III
Author

I really appreciate the super quick response. It works !!!! Thank you.

Not applicable

Excellent,

Tag the answer as correct then

Fabrice

Not applicable

PFA

jcharles
Contributor III
Contributor III
Author

Thank you, that also works