I have the following data:

I need the las date that is not null for each intake. Results for each intake are highlighted
I tried using a sample tool set to Last N rows but it returns the last row including nulls
Any ideas on how to solve this? Thank you