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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Adding an integer to time(minutes)

Hi, does anyone know how to add an integer to time field (minutes)?

The problem is Operating time is a whole number e.g. 248 and although Session time appears as a whole number e.g. 342 session time is actually be used as a decimal e.g..

---------------------

My formula is the following:

Touch Time Utilisation = Operating time / Session Time

Operating time = SUM ([OP TIME])

Session Time = INTERVAL(sum(TIME([Enter Rec])) --sum(TIME([Start Anaes])),'mm')

---------------------

The image attached illustrates the table im working with.

untitled.bmp

The desired result for date '4/1/2011' should be 248 / 342 = 0.725. But the result im getting is 1044.21052631579

Any ideas????

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Try to find out how these values are stored internally before applying any format conversion.

For example, the session time of 342 in the top is minutes while the corresponding time of 0.2375 in the botton display is in hours (as 342/24/60 = 0.2375). Also 248/0.2375 = 1044.21

Hope this helps to fix your application.

If you need more help, attach your qvw file.

View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

Try to find out how these values are stored internally before applying any format conversion.

For example, the session time of 342 in the top is minutes while the corresponding time of 0.2375 in the botton display is in hours (as 342/24/60 = 0.2375). Also 248/0.2375 = 1044.21

Hope this helps to fix your application.

If you need more help, attach your qvw file.

Not applicable
Author

Hi Krishna, yes it seemed that the session time was indeed being converted to hours.

I solved it by multiplying the decimal time by 1440 (total minutes in 1 day)