LOD Expressions from Tableau

Hi, I am trying to calculate the first purchase date of a given customer. Each row has a customer ID and a purchase date, leading two a structure. Source link