Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Referencing previous row in column: Performance issues

Hi, I would like to create a calculated column that references the previous row (in respect to a date/time column). I have a solution, but it requires too much computation to finish (I am running the column on 24 million rows, it has been calculating for 15 hours).

 

I have included a table below as an example, [Goal Column] is the column I am trying to calculate. As you can see, it is referencing the [hook_load] for the prior [Regular Date Time.1] (which also happens ot be the prior row in the sorting of this example table). 

 

I've also included a screenshot of my currently existing code (which takes too long). It's still calculating so I can't include a text version. 

 

Thanks in advance, I appreicate your support! 

 

 

time_traces_10s_view   
WellRegular Date Time.1hook_loadGoal Column (previous [hook_load]_
justin6/1/2021 5:0010-
justin6/1/2021 5:10510
justin6/1/2021 5:2045
justin6/1/2021 5:3054
justin6/1/2021 5:4075
justin6/1/2021 5:5057
justin6/1/2021 6:0065
justin6/1/2021 6:1056
brett6/4/2021 2:104-
brett6/4/2021 2:2054
brett6/4/2021 2:3085
brett6/4/2021 2:4048
brett6/4/2021 2:5054
brett6/4/2021 3:0075
brett6/4/2021 3:1057

 


 

1 Reply