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: 
julruiz123
Partner - Creator
Partner - Creator

Load number as string

Hi,

I have the next situation, in a database is stored the time as follow

9.01

6.45

7.10

8.10

So i need replace point by colon, but the string change as follows

7:1

8:1

How i can prevent the zero runs out?

Thanks.

11 Replies
julruiz123
Partner - Creator
Partner - Creator
Author

This is the script that i tried

A01:

LOAD tradoc,

           trahoi,

     Time(Time#(trahoi,'hh.mm'),'hh:mm TT') as trahoi1

FROM

INMTRA_EXT_Copia.qvd

(qvd);

and this is the result

img.png

julruiz123
Partner - Creator
Partner - Creator
Author

Hi,

This is the solution

Time(Time#(Num(trahoi,'00.00'),'hh.mm'),'hh:mm TT') as trahoi1

Thanks for the help!