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

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))