Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

hour

Hi can any suggest me how i can find hours from below  details

25:06:32 AM

81:00:18 AM

128:06:51 AM

152:59:36 AM

my result would look like

25

81

128

152

Pls  guide why my hour function is not working

thanks in adavance.

4 Replies
MayilVahanan

HI

Try like this:

=SubField('25:06:32',':')

hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You can use hour function but only after formatting your data to the time format using Time#().

Here it still won't work because this is not in correct format 24 hr or 12 hr.

Its total time for more than 1 day. You can use

interval(interval#(Trim(Replace(Field,'AM','')),'hh:mm:ss'),'hh')

or simply go by mayil suggestion as

SubField(FieldName,':',1)

srinivasa1
Creator II
Creator II
Author

Hi

Thanks for reply.i need only 25 so i wll consider this 25 hrs.

Thanks

srinivasa1
Creator II
Creator II
Author

Thanks. Sorry  i made mistake now i got it correct

thanks to all