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: 
rustyfishbones
Master II
Master II

Convert Time to Integer

Hi All,

I have the following

=TIME('$(now)' - TIME(MIN({<[TrxType] = {'D'},ActionID = {'PICKCASE'}, FromChamber = {'PR'}>}StartTime),'hh:mm'),'hh:mm')

which returns 04:10

I need to covert this to a number, can you help.

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this

Hour(('$(now)' - MIN({<[TrxType] = {'D'},ActionID = {'PICKCASE'}, FromChamber = {'PR'}>}StartTime))) + (Minute(('$(now)' - MIN({<[TrxType] = {'D'},ActionID = {'PICKCASE'}, FromChamber = {'PR'}>}StartTime)))/60)

View solution in original post

4 Replies
mdmukramali
Specialist III
Specialist III

Hi Alan,

it's returning the result in hours and Minutes ...

you want to convert it into Number ?

can you let me know what will be the result of 04:10 when you convert into Number ? // As a Sample

rustyfishbones
Master II
Master II
Author

4.16?

sunny_talwar
MVP
MVP

May be this

Hour(('$(now)' - MIN({<[TrxType] = {'D'},ActionID = {'PICKCASE'}, FromChamber = {'PR'}>}StartTime))) + (Minute(('$(now)' - MIN({<[TrxType] = {'D'},ActionID = {'PICKCASE'}, FromChamber = {'PR'}>}StartTime)))/60)

rustyfishbones
Master II
Master II
Author

thats it. thank you.