I used TOTAL(MAX([Date])) to put it into the title. TOTAL() is a table calculation that allows calculations on the whole data 'in the background', so to speak.
I don't think there is a way to add it dynamically to a reference line label, like you did manually.
Thanks Dimitri! This is exactly what I was looking for.