I am trying to create a time series which shows what the values of a specific Column was at a particular time. All I currently have access to is a table which logs all the changes, the current value of the columns, dates and the names of the column which was altered. I would like to create a new column which tracks what the previous value of the column was on the date before it was changed. There are over 63 columns in the change referenced in ‘Column_name’
This is what I currently have
________________________________________________
Name | date |A | B |C |NEW | Column_name|
bob | 12302019|2 | 23 |153|2 | a |
bob | 12102019|2 | 23 |153|362 | a |
bob | 10242019|2 | 23 |153|7 | a |
john | 10062017|684| 452|1 |254 | c |
john | 11052018|684| 452|1 |1 | c |
________________________________________________
This is what I would like help creating
_____________________________________________________
Name | date |A | B |C |NEW | Column_name| Old |
bob | 12302019|2 | 23 |153|2 | a | 362 |
bob | 12102019|2 | 23 |153|362 | a | 7 |
bob | 10242019|2 | 23 |153|7 | a | |
john | 10062017|684| 452|1 |254 | c | 458 |
john | 11052018|684| 452|1 |1 | c | 254 |
______________________________________________________