A couple weeks ago I was teaching a course and received a question from a student. Her question was “How can I use Tableau to only show the most recent 3 transactions per customer?” I thought I’d have an answer for her quickly, but I was wrong.
My first thought was, let’s just use the “RANK” function to accomplish this. We’ll use it as a Table Calculation to determine the most recent transactions by customer. I was feeling confident until I saw this: