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: 
haymarketpaul
Creator III
Creator III

Max Date from 3 different dates

QV11 SR4

I'm wondering if there's a clever way of finding the most recent date of 3 dates.

I have 3 different dates (DD/MM/YYYY) from 3 different sources - a user could be in 1 or more source each with an assoicated address

depending upon which date is the most recent i want to use the address associated with that source.

I could probably do this in a lengthy IF statement but am wondering if there's a better way to go about it?

Want to do in the LOAD statement - all data in same table

Any pointers would be great.

1 Solution

Accepted Solutions
sunny_talwar

You can use RangeMax()

RangeMax(Date1, Date2, Date3)

View solution in original post

3 Replies
sunny_talwar

You can use RangeMax()

RangeMax(Date1, Date2, Date3)

haymarketpaul
Creator III
Creator III
Author

Knew they'd be something - many thanks

sunny_talwar