How to get previous value before interactions?

@irecsys here an example how to to this: