Last active
August 29, 2015 14:16
-
-
Save ralfbecher/9ef5b6f59fc9afa37bda to your computer and use it in GitHub Desktop.
QlikView get and format microseconds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Formula to optain microseconds from TimeField: | |
LOAD ((frac(TimeField) * 86400000) - floor(frac(TimeField) * 86400000)) * 1000 as Micro | |
FROM ...; | |
//Use this formula for formatting: | |
LOAD Timestamp(TimeField - (Micro/86400000000)) & Num(floor(Micro), '000') as TimeStamp | |
FROM ...; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment