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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

GPS - Count the stop time

Hello Guys,

I need to create a expression to insert into a label.

In this expression, i have to use this data:

Date/hour, ID_Path, Ignition

So what i need to do is:

I need to count the amount of downtime. It tells the time between ignition 0 (off) and the Ignition 1 (on) = date/hour(ignition 1) - date/hour(ignition 0)

The problem is I have several identical / different records.

                             

Date/Hour,     Ignition id_path,  
2014-09-08 00:16:32.000017215967
2014-09-08 00:36:42.000017211123
2014-09-08 00:56:52.000017204958
2014-09-08 01:17:01.000017259288
2014-09-08 01:37:11.000017258500
2014-09-08 01:57:21.000017257560
2014-09-08 02:04:47.000117257350
2014-09-08 02:05:12.000117260469
2014-09-08 02:05:36.000117259887
2014-09-08 02:05:54.00010206088
2014-09-08 02:06:35.00013348442
2014-09-08 02:08:29.000115325993
2014-09-08 02:08:34.000113646438
2014-09-08 02:08:46.00013773396
2014-09-08 02:09:05.00014473620
2014-09-08 02:09:16.00006473289
2014-09-08 02:10:10.00015172137
2014-09-08 02:10:27.00019388413
2014-09-08 02:10:53.000117259864
2014-09-08 02:11:24.000117259854
2014-09-08 02:12:12.000117261094
2014-09-08 02:13:03.000117261092
2014-09-08 02:13:28.000117261081
2014-09-08 02:14:04.000117261068

I need to count the downtime of each ID_Path (to say the total downtime of everybody and the max downtime). The data is not sorted by id_path but by the Date / Hour in the file. So have no idea how to get the total downtime of all ID_Path and acquire the number of ID_Path bigger and less downtime.

Thanks !

Labels (1)
11 Replies
MarcoWedel

please mark this thread as answered if your initial question is answered and open another thread for this question.

thanks

regards

Marco

Anonymous
Not applicable
Author

Thanks for the answer Marco !

Actually, it's a part of same problem. We will loose the context if i create another post. Can we continue here?

Thanks !