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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to format Qlikview Timestamp upto microseconds?

In qlikview I can get timestamp in milliseconds, by setting timestamp format as :-

SET TimestampFormat='MM/DD/YYYY hh:mm:ss.fff';

I want to know if there is a way to get time stamp in qlikview upto microseconds.

1 Solution

Accepted Solutions
Not applicable
Author

Hi All,

I got the solution to this courtsey User ralfbecher - Stack Overflow.

Formula to optain microseconds from TimeField:

((frac(TimeField) * 86400000) - floor(frac(TimeField) * 86400000)) * 1000 as Micro

And I would use this formula for formatting:

Timestamp(TimeField - (Micro/86400000000)) & Num(floor(Micro), '000') as TimeStamp

Here is the link to original solution :-

Qlikview Timestamp formatting upto microseconds? - Stack Overflow

View solution in original post

1 Reply
Not applicable
Author

Hi All,

I got the solution to this courtsey User ralfbecher - Stack Overflow.

Formula to optain microseconds from TimeField:

((frac(TimeField) * 86400000) - floor(frac(TimeField) * 86400000)) * 1000 as Micro

And I would use this formula for formatting:

Timestamp(TimeField - (Micro/86400000000)) & Num(floor(Micro), '000') as TimeStamp

Here is the link to original solution :-

Qlikview Timestamp formatting upto microseconds? - Stack Overflow