Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Announcing the newest addition to the Qlik Community, Qlik Gallery! Learn More
samuel_brierley
Contributor

loading two time formats

Hi all,

I have a strange problem and quite simply no idea how to deal with this,

my log files contain data for every half second which provides two time formats e.g

57601.5
57602

(time#(Timestamp,'ss:f'),'hh:mm:ss:f') as Timestamp,

(time#(Timestamp,'ss'),'hh:mm:ss') as Timestamp,

I can solve each of the formatting errors seperatly using one of the above lines but cant figure out how to solve both at the same time.

I presume the script must read something like;

"if format is A do X, if NOT do y"

but the above is a little beyond me.

any help would be greatly appreciated. thanks

1 Solution

Accepted Solutions

Re: loading two time formats

Time(Time#(Timestamp,'ss[.f]'),'hh:mm:ss:f') as Time

3 Replies

Re: loading two time formats

Time(Time#(Timestamp,'ss[.f]'),'hh:mm:ss:f') as Time

samuel_brierley
Contributor

Re: loading two time formats

Brill thanks

Re: loading two time formats

You're welcome

regards

Marco