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: 
Anonymous
Not applicable

Convert Decimal into hh:mm:ss

Hello all,

I want to convert decimal values into hh:mm:ss.

PFA excel file.

Can someone help me how to achieve this?

Thanks,

Nisha

17 Replies
Kushal_Chawda

Are these values in seconds?

Peter_Cammaert
Partner - Champion III
Partner - Champion III

QlikView Date & Time functions use a decimal value to represent timestamps, just like in Excel: the integer part represents the date, the fraction is the time as part of a day (ex. 0.25 = 6AM). If you put those values straight into a call to the Time() function (or even better, Interval()), you will get a value in hh:mm:ss.

But just like Kushal asked before, I would like to know too what those values really represent.

its_anandrjs
Champion III
Champion III

What is the actual format for this decimal data please elaborate.

Anonymous
Not applicable
Author

These values are in hh:mm:ss.

Kushal_Chawda

I mean data in your excel file is in seconds?

Anonymous
Not applicable
Author

Hi All,

These values are in hh:mm:ss.

Thanks

Peter_Cammaert
Partner - Champion III
Partner - Champion III

No they are not. They are just decimals, even in Excel which doesn't format them otherwise. What do they actually represent?

For example, if I format the very last value in Excel into a DateTime value, I get 19/11/6944  10:04:48. Is that correct?

Peter_Cammaert
Partner - Champion III
Partner - Champion III

If you don't know the answer to this question, maybe you can tell us where your values come from?

rohitraut
Creator
Creator

Hello Nisha,

Try this,

time(date#( DecimalValue ,'hhmmss'),'hh:mm:ss') as time

Hope this help!