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: 
Not applicable

How to use this date/time format then work out the difference.

Hello,

So I have a CSV which auto exports as DD-MM-YY HH:SS TT. (01-01-16 11:01 PM).

I have two time fields, Date created and date resolved - I want to be able to work out the average difference between these.

Here is an example of my table

Date CreatedDate Resolved
01-01-16 1:01 AM02-01-16 4:01 AM
01-01-16 2:01 AM03-01-16 5:01 AM
01-01-16 3:01 AM04-01-16 6:01 AM

Thanks in advance!

(This is all on QlikSense NOT Qlik View)

3 Replies
maxgro
MVP
MVP

avg(Timestamp#([Date Resolved], 'DD-MM-YY HH:SS TT') - Timestamp#([Date Created], 'DD-MM-YY HH:SS TT'))

Vegar
MVP
MVP

If you put interval() around maxgro‌'s expression it will be presented in a readable format.

Interval( avg(Timestamp#([Date Resolved], 'DD-MM-YY HH:SS TT') - Timestamp#([Date Created], 'DD-MM-YY HH:SS TT')) )

Anil_Babu_Samineni

Would you let me know what is the expected output for it

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful