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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Paulo_IntelFab
Contributor III
Contributor III

Update the column value from 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. 

Labels (2)
1 Solution

Accepted Solutions
pedrobergo
Employee
Employee

Hey @Paulo_IntelFab 

Which product you´re referring to?

This forum is for Qlik Cloud Data Integration.

[],

Pedro

View solution in original post

2 Replies
pedrobergo
Employee
Employee

Hey @Paulo_IntelFab 

Which product you´re referring to?

This forum is for Qlik Cloud Data Integration.

[],

Pedro

Paulo_IntelFab
Contributor III
Contributor III
Author

Hi @pedrobergo . Thanks for replying. 
I'll try on another forum.