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: 
TomBond77
Specialist
Specialist

Timestamp: need the right time out of it

Hi experts

I have this formula which is not working: For the example in below I would expect 07:00. What is wrong with this formula:

Text(Time(round( (EventDate)), 'hh:mm')) as [Event Time]

 

TomBond77_0-1703252946476.png

 

Regards, tom

 

Labels (5)
1 Solution

Accepted Solutions
TomBond77
Specialist
Specialist
Author

solved it: time(frac([EventDate])) as [Event Time],

View solution in original post

3 Replies
vincent_ardiet_
Specialist
Specialist

Why have you used a ROUND() in your expression? This is removing the hour, so it makes sense to obtain 00:00.

TomBond77
Specialist
Specialist
Author

solved it: time(frac([EventDate])) as [Event Time],

vincent_ardiet_
Specialist
Specialist

Sure, but the former one, just removing the round would have fixed the issue.