Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to calculate a 'middle date' from 2 other dates ? Help please :-)

Hi,

I have a table like this..

Item A Delivery from 01/01/10 Delivery to 01/02/10

I am looking for some thing script wise that would give me the 'mid date' i.e 15/01/10

Was thinking convert date to numbers, then ((MAX DATE - MIN DATE) / 2) + MIN DATE & then convert number back date, but

a) not sure if this is the best approach and

b) can't find the function to convert dates to numbers

Any ideas please - help gratefully received 🙂

Thanks

Bob

1 Solution

Accepted Solutions
Not applicable
Author

=

date(rangesum(MinDate,MaxDate)/2)





View solution in original post

3 Replies
suniljain
Master
Master

recently i resolve same type of issue with the help of interval match.

Not applicable
Author

=

date(rangesum(MinDate,MaxDate)/2)





Not applicable
Author

Superb - thanks very much !! 🙂