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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Converting hours to min

Hi,

Is it possible to show convert hours into minutes by adding the minutes to it. Like if it is 12:50:00. I want to convert the 12hrs to minutes and add with the 50 minutes.

Labels (1)
1 Solution

Accepted Solutions
rbecher
Partner - Master III
Partner - Master III

You want this?

= hour('12:50:00') * 60 + minute('12:50:00')


Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine

View solution in original post

5 Replies
Not applicable
Author

use this

=



SubField('12:50:00',':',1) *60 + SubField('12:50:00',':',2)

SubField('12:50:00',':',1) *60 + SubField('12:50:00',':',2)





Not applicable
Author

Hello again,

see the attached example.

I played arround a little bit with days, hours, minutes and so on.

Good luck!

Rainer

rbecher
Partner - Master III
Partner - Master III

You want this?

= hour('12:50:00') * 60 + minute('12:50:00')


Data & AI Engineer at Orionbelt.ai - a GenAI Semantic Layer Venture, Inventor of Astrato Engine
hector
Specialist
Specialist

Hi, this helps too


interval('12:50','m')


returns 770 = 12*60 + 50

Rgds

johnw
Champion III
Champion III

Yet another way:

interval#('12:50','hh:mm')*24*60