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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
dominicanlauf
Contributor III
Contributor III

hour function with decimal places

Hello everybody,

is there a opportunitiy to get decimal places from the hour function?

 

For example:

Timestamp: 02.05.2019 05:58:12

hour(timestamp) = 5

Now I want to get 5,97

Is this possible?

Thanks,

Dominic

 

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Hour() won't give that. You can try like:

 

=Num(Frac(Timestamp)*24, '##.00')

View solution in original post

2 Replies
tresB
Champion III
Champion III

Hour() won't give that. You can try like:

 

=Num(Frac(Timestamp)*24, '##.00')

dominicanlauf
Contributor III
Contributor III
Author

Great, thanks!