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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
mato32188
Specialist
Specialist

Overnight calculation

Hi QV fans,

if anyone knows how to use "?" to calculate records like:

CellStartFinishStart TimeFinish TimeNewDay@NewDayStoppage
Cell 12013/08/20 23:45:082013/08/20 23:49:2820.8.201320.8.201320.8.201300,38
Cell 12013/08/20 23:50:442013/08/20 23:55:0520.8.201320.8.201320.8.201301,27
Cell 12013/08/21 00:21:222013/08/21 00:25:0821.8.201321.8.201320.8.2013126,28

Stoppage [min] is calculated as difference between last Finish and next Start. Could anybody help, how to calculate Stoppage till 23:59:59 and rest of stoppage time add to next record?...Thanks a lot

Martin

ECG line chart is the most important visualization in your life.
1 Solution

Accepted Solutions
mato32188
Specialist
Specialist
Author

I mean, if the stoppage goes thru the midnight, add aliquot stoppage time till the end of day (to 23:59:59) and if there is a rest of stoppage time, add it to next record.

Thanks

ECG line chart is the most important visualization in your life.

View solution in original post

5 Replies
tresesco
MVP
MVP

Could you elaborate a bit more(would be better if with an expected output example)?

mato32188
Specialist
Specialist
Author

CellStartFinishStart TimeFinish TimeNewDay@NewDayExpected Stoppage [min]
Cell 12013/08/20 23:45:082013/08/20 23:49:2820.8.201320.8.201320.8.20130X
Cell 12013/08/20 23:50:442013/08/20 23:55:0520.8.201320.8.201320.8.20130(20.8.2013 23:59:59-20.8.2013 23:55:05)
Cell 12013/08/21 00:21:222013/08/21 00:25:0821.8.201321.8.201320.8.2013121.8.2013 00:21:21 - 20.8.2013 00:00:00)
ECG line chart is the most important visualization in your life.
arjunkrishnan
Partner - Creator II
Partner - Creator II

Hellow  Frd See This Sample  Qvw.File ...

I Try This One...I hope u to Useful for U..

My Result Like That

Thank U By

Arjun Krish

tresesco
MVP
MVP

Do you mean, for the first record, you would want the start timestamp to consider as ...23:59:59 and rest are as it is?

mato32188
Specialist
Specialist
Author

I mean, if the stoppage goes thru the midnight, add aliquot stoppage time till the end of day (to 23:59:59) and if there is a rest of stoppage time, add it to next record.

Thanks

ECG line chart is the most important visualization in your life.