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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How do i convert to HH:MM

Hi

I have a chart which display the runtime in minutes as 69.77hrs, but the actual value is 69hours 46 minutes

Is there a way in Qlikview where we can convert the value in HH:MM format?

Thanks!

10 Replies
johnw
Champion III
Champion III

You mean the value is 3164? So a whole number of minutes? Because '52hrs 44min' isn't a number.

A text box with this:

=interval((3164/60)/24,'hh:mm')

Gives this result:

52:44

Your problem is not with the interval() and how people are telling you to do it. Your problem lies elsewhere. Perhaps the value isn't actually 3164, for instance. For that matter, it is IMPOSSIBLE to get result '12' with the expression Karl gave you, because the format will insert a colon. So maybe you got '00:12' or '12:00', but you didn't get '12'. Or if you DID get '12', you aren't using Karl's expression.