Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
iralza01
Contributor II
Contributor II

Hi, I want to convert a number for example 3,15 that represent (3h15min) into hour 3,25h. ,

Hi I need to convert the following format into hours. I have the number 3,15 that represents 3h 15min, and I want to know how many hours with decimal are.

For example:

15min/60= 0.25h

so I want to transform 3,15 to 3.25.

Any suggestion?

2 Replies
oknotsen
Master III
Master III

Lets assume the field aNumber contains this information and you want to store it into newNumber:

floor(aNumber) + (frac(aNumber)/60)*100 as newNumber

May you live in interesting times!
MK_QSL
MVP
MVP

=Time#(3.15,'h.mm')*24