All tagged Dates

Do you want to build a customizable, dynamic date range filter in Tableau?

For example, imagine you want the filter to default to the last 14 days ending with today's date, but you'd like your user to be able to adjust the end date and number of days in that filter.

That combination of functionality is not available out-of-the-box in Tableau, but with some creativity, parameters and calculations, it's possible!

Filtering on a date range in Tableau is pretty straightforward, right? But how about if you want to filter on that date range AND you want a comparison date range filtered at the same time? That's trickier.

For example, you set a filter from January 1st to March 15th 2024 and you want a comparison period of January 1st to March 15th 2023 to automatically be set, how do you do that?

Does your data set have multiple date fields? For instance, maybe you have both an "Order Date" and a "Delivery Date". Or maybe you have both a "Hire Date" and a "Termination Date".

Sometimes, you need to filter on both date fields at once to answer questions like, "How many people were hired and how many people were terminated in the Marketing Department this year?"

Many organizations report against a fiscal calendar. If your organization's fiscal year doesn't start in January and you've tried to display values against fiscal periods in Tableau, you probably know exactly what I'm talking about.

When fiscal date periods are being compared, it's usually Fiscal Years or Fiscal Quarters. Let's imagine you are asked to build a chart which compares business segment values from the current Fiscal Quarter to Date versus the same period last year. Where would you start?

Visualizing time-series data is one of Tableau's best and defining features. Tableau provides a flexible method for visualizing dates so you can easily display chronological values and compare time periods.

However, with that flexibility comes a lot of a lot of options which can feel overwhelming and complex. For instance, why are there two different ways to visualize months and what's the difference? What does that mean if a date pill is green versus blue?

Tableau is a great tool for operationalizing time period comparisons. One of the classics is comparing quarters.

For example, you might want to know how this quarter compares to last quarter. That's a great way to compare values if your business isn't very seasonal. However, what if you sell sunscreen? You can bet that comparing fall to summer is always going to look like a bummer.

One of my favorite, underrated visuals in Tableau is to compare running sum values year over year! It is a great tool to compare student enrollments, sales and even personal achievements like miles run or silver coins found metal detecting! :-P

Would it be helpful to see how the running sum of values for this year stacks up to previous years? Check out this video to learn how you can compare cumulative values year over year!

Many organizations report against a fiscal calendar which doesn't align with the standard calendar year. If your organization's fiscal year starts in October or July, you know what I'm talking about.

We've created a handful of resources documenting how to use calculations to monitor year to date performance compared to prior year to date performance, but we've never addressed how to do this if you're operating on fiscal years.

Sometimes, you need a totally customized date filter for a Tableau dashboard. A fully customized date filter allows you to list the exact date ranges you want a user to be able to select from, and then filters the worksheets in the dashboard to that selected range. Check this video out to learn how you can utilize a parameter, calculation with date logic and worksheet filters to give your users a fully customized list of date ranges they can select and filter on.