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: 
Paulo_IntelFab
Contributor III
Contributor III

How to update a column on a previous row?

Hi, guys. 
 I need to set the downtime value of a machine according to the time where the machine stop occurred. 
 My table is something like this:

Shift Interval Interval Downtime
1 12 07:34:34 0
2 1234 14:12:12 398


In this case, I need to split the downtime between Shifts 1 and 2 (because most of time stopped was on Shift 1). 
The expected values are something like this:

Shift Interval Interval Downtime
1 12 07:34:34 386
2 1234 14:12:12 12

 

How can I, detecting this change of Shift (using Previous(Shift), update the last row of the Shift 1? 
I appreciate any help. 

This is the same question I posted in other forum (but here it looks more suitable). 

Labels (1)
0 Replies