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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
stabben23
Partner - Master
Partner - Master

Num to time

Hi,

I have a num value =2 this is really 00:00:02 on the clock. I also have 92433 which is 09:24:33

I want the field to be formated as a time value like hh:mm:ss. SQL code or in qlikview is OK.

Labels (1)
11 Replies
MarcoWedel
MVP
MVP

Hi,

another solution:

LOAD *,

    Time(Mod(val,100)/86400+Mod(Div(val,100),100)/1440+Div(val,10000)/24) as Time

INLINE [

    val

    113

    1256

    211318

    144036

    2

];

QlikCommunity_Thread_129764_Pic1.JPG.jpg

hope this helps

regards

Marco

MarcoWedel
MVP
MVP

... and one more:

Time(Time#(Num(val, '000000'), 'hhmmss'),'hh:mm:ss')

QlikCommunity_Thread_129764_Pic2.JPG.jpg

hope this helps

regards

Marco