In the DataManager space you can use Sort operation to sort the Data field in descending order, so oldest date will appear last in order. New field will then establish relevant date for each ID SUBSET_LASTNONNULL([Date], SUBSET([ID]))
You said each ID can have multiple dates against it, so not sure how would you create logic to delete the specific values?