I have this list with multiple records for each person.
I want to select a specific record from it for each person with a certain condition.
If that certain condition does not meet "all" the records for that person, then we pull the fallback values.
For example:
In this case, I want to pull the record for each person with Active Status = Y then the max date.
If the records does not meet these condition, like John, then it will pull the record with max date regardless of its Active Status.
The result should be: