I tried your suggestion and my problem is that the code identifies all lines as "Old"
The example I provided is a very simplyfied version of my problem. I will provide further details.
My Qlik Sense App is reading the data from an Excel file that it is weekly updated. Then I execute "Load data" and with this, old and new lines of this excel are re-loaded. The code would look like this: