MIP Logo

Building Dynamic Bar Charts with Time Period Selections

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here. 

Recreating dashboards is a very good way to practice Tableau skills. This blog post is about the key take away from Workout Wednesday week 2 in 2020 – how to create date selection parameters with last 12 months, last 13 weeks and last 14 days based on today’s date – 01/01/2020. Because they all have similar logic, I’ll use ‘Last 12 months’ as an example.

 

1. based on the question, set 1/1/2020 as today using parameter

 

2. create custom date from ‘Order Date’ with detail in ‘Days’, ‘Months’ and ‘Week numbers’.

 

3. Create calculation for each custom date. For example, Last 12 Months.

 

4. create date selection parameter and show parameter.

 

5. create calculation for date selection parameter.

 

6. drag date selection calculation to filter and select ‘True’. Then we can have the final dashboard.

 

I do agree Ann Jackson‘s word:”The devil is in the details” when recreating dashboards. All these details contain so many good tips for Tableau skills. Highly recommend!!!

 

 

 

 

Share this post