Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

subtracting two dates and times

l would like to subtract 2 dates and times. What formula do l use in qlikview? Last drop departure date minus Last drop arrival date

  

Last Drop Arrival DateLast Drop Departure Date
28/10/2015 06:1528/10/2015 7:45
28/10/2015 07:3028/10/2015 09:30
29/10/2015 09:5029/10/2015 11:30
28/10/2015 21:0029/10/2015 08:00
13 Replies
Not applicable
Author

Hi Nard;

l want to see difference in time, minutes

oknotsen
Master III
Master III

round(([Last Drop Arrival Date] - [Last Drop Departure Date]) * 24 * 60, 1)

May you live in interesting times!
Anonymous
Not applicable
Author

Hi Moses,

Please see my post to get the interval in minutes

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_190047_Pic1.JPG

LOAD *,

    Interval([Last Drop Departure Date]-[Last Drop Arrival Date],'hh:mm') as Duration;

LOAD Timestamp#([Last Drop Arrival Date], 'DD/MM/YYYY hh:mm') as [Last Drop Arrival Date],

    Timestamp#([Last Drop Departure Date], 'DD/MM/YYYY hh:mm') as [Last Drop Departure Date]

FROM [https://community.qlik.com/thread/190047] (html, codepage is 1252, embedded labels, table is @1);

hope this helps

regards

Marco