I am trying to create the "Type" column for data in the format below. The logic: Find the row with the most recent "Date" for a distinct "ID" (second column) and compare it to the "Became Date". If "Became date" is NULL or newer than "Date": "Type" column is set to Prospect. If "Became Date" is older than "Date": "Type" column is set to Customer.
Is this even possible in a Beast Mode?
Date | ID | Became Date | Type |
10/1/2020 | 1 | 1/1/2019 | |
10/2/2020 | 1 | 10/3/2020 | |
10/3/2020 | 1 | | Prospect |
10/1/2020 | 2 | 1/1/2019 | |
10/2/2020 | 2 | 1/1/2019 | |
10/3/2020 | 2 | 1/1/2019 | |
10/6/2020 | 2 | 1/1/2019 | Customer |
9/1/2020 | 3 | 10/1/2020 | |
9/3/2020 | 3 | 10/1/2020 | Prospect |