Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
wade12
Partner - Creator II
Partner - Creator II

qlikview date/time

quick question please, any/all advices appreciated, thank you in advance.

formula to calculate correct duration please (as per screenshot):

note, the figures for duration in the screenshot are incorrect because they fai to take into account the rolling over into another day.

1 Solution

Accepted Solutions
marcus_sommer

If you export this table to excel you will see that the calculation will be right but Qlik displayed only the time-part. To display also the days you could use: interval(End - Start, 'D hh:mm:ss'). And you need to enable expression-standard within the tab numbers.

- Marcus

View solution in original post

7 Replies
sunny_talwar

I think you need to use TimeStamp fields which have dates in them to find the difference and then use Interval function to get the duration

Interval([Seq No. End Date] - [Seq No. Start Date], 'hh:mm:ss')

tresesco
MVP
MVP

May be like this?

Interval( Date1-Date2, 'hh:mm:ss')

Anil_Babu_Samineni

Perhaps this?

Interval(TimeStamp#([Seq No. End Date]) - TimeStamp#([Seq No. Start Date]), 'hh:mm:ss')


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
marcus_sommer

If you export this table to excel you will see that the calculation will be right but Qlik displayed only the time-part. To display also the days you could use: interval(End - Start, 'D hh:mm:ss'). And you need to enable expression-standard within the tab numbers.

- Marcus

wade12
Partner - Creator II
Partner - Creator II
Author

Thanks Marcus.

... but how can I format 1 04:30:00 to be 28:30:00 ?

sunny_talwar

Instead of using the format 'D hh:mm:ss', use 'hh:mm:ss'

wade12
Partner - Creator II
Partner - Creator II
Author

Thanks Sunny.