5 Replies Latest reply on Jul 7, 2019 3:25 PM by Veronica Simoes

    How to do LAG in Tableau?

    John Edwards

      Hi,

       

      I'm still new with Tableau and wasn't expert with SQL either but I basically need to flag where the same Customer contacting us within 14 days. Important that I need the flag to be looking forward, i.e. has there been another contact made within 14 days from this entry, rather than was there contact from this customer already in the last 14 days, If that makes sense?

       

      This is something I've done before in SQL using the LAG function but not sure how is best to do it in Tableau.

       

      Please help.

       

      Thanks,

       

      John