How Calculate (and Filter) to the Max Day in a Data Set in Tableau

By: Eric Parker

Eric Parker lives in Seattle and has been teaching Tableau and Alteryx since 2014. He's helped thousands of students solve their most pressing problems. If you have a question, feel free to reach out to him directly via email. You can follow him on LinkedIn or sign up for a Tableau Office Hour to work with him directly!

Let's say you want to filter a Tableau worksheet to only contain data from the latest date in the data set. That's pretty simple if the latest date is consistently today or yesterday. You can just use a relative date filter!

But what if the most recent date in the data set is less consistent? Maybe you want to see orders on the latest transaction date but sometimes the business goes a couple days without transactions (or doesn't transact on certain days of the week). A filter which only kept data for "Today" wouldn't be very effective!

Check out this video to learn how you can use a FIXED Level of Detail expression to calculate the latest date in a data set and a custom calculation to filter and only keep data from that date.

Want to keep learning foundational skills in Tableau? Sign up for our weekly newsletter so you never miss new blog posts, videos and events!

How to Build Donut Charts in Tableau

How to Tableau: Pivots in Tableau Desktop

0