Hi All,
I am trying to create a new column "Status" which will return "Active" or "Replaced" based on the following specification (attached part of the table with "Status" column as illustration of expected result).
Each TOOL and Site can replace different Sub_Tool during time and runs several units with its time stamp. The most recent Sub_Tool for the specific Tool and Site should receive Active on the status column and all previous Sub_Tool which where used on that tool and site should receive Replaced.
As on the example attached same Sub_Tool might repeat over time but only on last runs should be marked as Active.
Real file has many tools and each tool has many sites so need a robust coding.
Your help is much appreciated.