Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
rakeshkumar1890
Creator
Creator

Calculate Day and time

how can convert 23142 into day and time

12 Replies
MarcoWedel

That might depend on the result you would expect.

pradosh_thakur
Master II
Master II

Not sure you can covert this to any time as there is no decimal part of the number present here but you can try timestamp() function .. It will change it to a date with timestamp as 00:00:00.. anyways what is the output you want to see?

Learning never stops.
Thiago_Justen_

As Pradosh's response you can use timestamp function for that. But your output with this integer number will look like this:

Screenshot_20180126-231359.png

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
rakeshkumar1890
Creator
Creator
Author

I have used online tool to convert this number into HH:MM:SS

then I got 06:25:42

How I can calculate in qlikview

format : DD:HH:MM:SS

pradosh_thakur
Master II
Master II

I would use this

=Interval(23142/86400,'DD:hh:mm:ss')

replace your field with 23142

Learning never stops.
sahadevpatil140
Partner - Contributor III
Partner - Contributor III

I have used following expression to calculate Days and Time from given DATENUMBER 23142

=Date(23142,'DD-MM-YYYY HH:MM:SS TT')  convert into Date

=day(Date(23142,'DD-MM-YYYY HH:MM:SS TT'))  To find Day

=Time#(date(23142,' HH:MM:SS TT'))  to find Time

Following attachments shows expected result

Regards,

Sahadev PatilDays_Time.JPG

rakeshkumar1890
Creator
Creator
Author

Thanks all of you

I got the database provides to different values in different conditions

@@Pradosh - I have already applied interval function but due to different values in database I can't map.

I got the solution what I want

Thanks.

Thiago_Justen_

Sound's good Rakesh. By the way, if your problem is already solved, please, close the thread.

Cheers

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
MarcoWedel

what is your solution?