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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue converting time measurement

Hi all,

I’m having an issue converting a time measurement into seconds, hours etc.

The field total_time appears to load in a string format, e.g. 00162597 corresponds to 00 hours:16 minutes:25 seconds.97milliseconds.

I have tried the following expression =Interval(Time#(total_time,'hh:mm:ss.ff'),'ss') to convert it to seconds, but it’s returning a null value.

What’s I find strange is that if I enter =Interval(Time#(00:16:25.77,'hh:mm:ss.ff'),'ss') it will return the correct value, 985.97 seconds.

Is there an issue with how it’s reading the field? Should I have it time-stamped in the load string in a certain way initially?

Thanks for any help.

Labels (1)
2 Replies
sunny_talwar
MVP
MVP

Try this may be:

=Interval(Time#(total_time,'hhmmssff'), 'ss')

sunny_talwar
MVP
MVP

Or this

=Interval(Time#(00162597,'hhmmssff'), 'ss.ff')

Capture.PNG