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

Duration Calculation

Screenshot 2023-06-06 223300.png

 I have table that contains this tow columns i want to calculate the duration time in a new column the both column are timestamp data type 

Labels (1)
1 Solution

Accepted Solutions
snibrahim1993
Partner - Contributor III
Partner - Contributor III

Hi @abTech 
Please try like below expression

Interval(EndDate - StartDate, 'hh:mm')
Or
Interval(Timestamp(EndDate) - Timestamp(StartDate), 'hh:mm')

Regards, Mohamed Ibrahim.
If this resolves your Query please like and accept this as an answer.

View solution in original post

10 Replies
MarcoWedel

Interval(EndDate-StartDate)

abTech
Contributor II
Contributor II
Author

 

Thanks but it try it and showing up like these which i think it's not correct.

is there any other way to do it. thanks for your participation .
2.png

Kushal_Chawda

@abTech  How would you like to have your duration? In hours?

abTech
Contributor II
Contributor II
Author

hours and minutes

BrunPierre
Master
Master

Retry @MarcoWedel 's suggestion with a format.

Interval(EndDate-StartDate, 'hh:mm')

snibrahim1993
Partner - Contributor III
Partner - Contributor III

Hi @abTech 
Please try like below expression

Interval(EndDate - StartDate, 'hh:mm')
Or
Interval(Timestamp(EndDate) - Timestamp(StartDate), 'hh:mm')

Regards, Mohamed Ibrahim.
If this resolves your Query please like and accept this as an answer.
abTech
Contributor II
Contributor II
Author

this also not working 

3.png

snibrahim1993
Partner - Contributor III
Partner - Contributor III

@abTech  It's showing hours and minutes correctly, what's your expected output?

Please share

Regards, Mohamed Ibrahim.
If this resolves your Query please like and accept this as an answer.
abTech
Contributor II
Contributor II
Author

it's should 6 mins the duration!