Skip to main content
Announcements
YOUR OPINION MATTERS! Please take the Qlik Experience survey you received via email. Survey ends June 14.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

round down time to hours

Hi, how can I round down time 'hh:mm' to hours? eg. 07:55 will round down to '07:00'

Thanks.

1 Solution

Accepted Solutions
peterwh
Creator II
Creator II

Hi,

I don't know, if there's a simplier solution, but "maketime(hour(<TimeField>))" should do the trick. If you only set the format, the value stays at 07:55, it's only displayed as 07:00.

Kind regards

Peter

View solution in original post

2 Replies
peterwh
Creator II
Creator II

Hi,

I don't know, if there's a simplier solution, but "maketime(hour(<TimeField>))" should do the trick. If you only set the format, the value stays at 07:55, it's only displayed as 07:00.

Kind regards

Peter

ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

=hour(ceil(time#('07:55','hh:mm'),1/24))

Regards

ASHFAQ