Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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