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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rounding down hour/minutes

Hello,

I have captured the time intervals between to date/time fields.  An example of my result is:  52:15:00.  This represents 52 hour and 15 min between the two dates.  I would like to round down to 52.  I don't need the minutes and seconds.

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

I was able to accomplish it by doing this

num(Left(TimeField, Len(TimeField)-6))

View solution in original post

2 Replies
Not applicable
Author

Try following :

time(round( time#([Time],'hh.mm.ss'),maketime(0,30))) as RoundedTime

Not applicable
Author

I was able to accomplish it by doing this

num(Left(TimeField, Len(TimeField)-6))