I tried this
| eval mytime = round(_time) | eval mytime2= round(_time)-40
| eval x = round(_time), x2 = round(_time)-40
| eval y1=if(x=mytime,y,null()), y2=if(x2=mytime2,y,null())
| table mytime,mytime2,y1,y2
This gives me y2 value , but not the correct value. It shows me the same y2 value that of y1. I think when the condition x2=mytime2 becomes true , it is giving us the "current value of y" instead of giving the "40 sec older value of y".
But I want both the current y value and 40 sec older y value .
... View more