Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Parsing out Time and calculating it.

Hello, I was hoping someone could help.

I want to write an expression that calculates the length of time it took to work on a ticket, based on this date format.

=count (ActulStrtTstmp) - (ActulEndTstmp)

How would I display this at this

0 Day 1 hr 15 min (for example?

Start Time 2014-01-27 13:59:31

End Time 2014-01-27 15:10:37

Thanks in Advance

1 Solution

Accepted Solutions
sunny_talwar

May be this:

=Interval([Start Time] - [End Time], 'D hh:mm')

or

=Interval([Start Time] - [End Time], 'D') & ' Day ' & Interval([Start Time] - [End Time], 'h') & ' hr' & Interval([Start Time] - [End Time], 'mm') & ' min'

View solution in original post

2 Replies
sunny_talwar

May be this:

=Interval([Start Time] - [End Time], 'D hh:mm')

or

=Interval([Start Time] - [End Time], 'D') & ' Day ' & Interval([Start Time] - [End Time], 'h') & ' hr' & Interval([Start Time] - [End Time], 'mm') & ' min'

Not applicable
Author

Awesome, they bother worked great.

Thanks a lot.