VizWiz

Launch, grow, and unlock your career in data
Showing posts with label date. Show all posts

October 31, 2023

How to Create a Year→Quarter→Month→Day Drilldown in Tableau

No comments

Are you looking to take your Tableau skills to the next level? Do you want to create dashboards that offer a dynamic and interactive experience? 

Look no further! 

This comprehensive tutorial will walk you through the process of creating a Year→Quarter→Month→Day Drilldown in Tableau.

🔹 What You'll Learn:

1. How to set up 2 parameters for drilldown functionality

2. How to perform 9 simple calculations that power your dashboard

3. How to implement 8 simple dashboard actions for enhanced interactivity

4. Introduction to dynamic zone visibility

🔹 Who Should Watch:

1. Data analysts looking to expand their Tableau toolkit

2. Business intelligence professionals aiming for dynamic reporting

3. Anyone who wants to unlock the full potential of Tableau

🔹 Why This Tutorial is Unique:

1. Step-by-step guide for each component: Parameters, Calculations, and Dashboard Actions

2. Introduction to advanced Tableau functionalities like dynamic zone visibility

3. Reusable examples to cement your understanding

4. Tips and tricks for maximizing the utility of your drilldowns

Don't miss out on upgrading your Tableau skills. 

Let's dive into the world of advanced Tableau functionalities and take your dashboards to the next level! 

October 5, 2022

How to Create a Starburst Chart

1 comment

Starburst charts, sometimes called sunburst charts or circular timelines, are one method of displaying data over time. They may look cool, but they aren't exactly easy to understand. If you are going to use them, I'd advise you to check with your audience first to ensure they understand how to read them.

In this video, I take you through how to build a single starburst as well as a series of starburst charts as small multiples or trellis chart.

All of the calculations are in the description for the video here. You can download the workbook below. 


April 12, 2022

How to Show Data for Only Completed Periods

No comments
In this tip, I show you how to filter your data to only completed weeks. This method can be extended to completed months, quarters or years. All you have to do is swap out the word 'week' in the filter calculation.

January 5, 2022

How to Create a User-Defined Moving Average

No comments
In this tip, I show you how to use two parameters to create a view that allows the user to pick (1) the duration and (2) the date part to create a moving average calculation.

For example, this technique will allow the user to choose a 13-week moving average, a 6-month moving average, a 90-day moving average, etc.

March 2, 2021

How to Create a Circle Timeline

No comments
A circle timeline or bubble timeline is a way to display a series of dates on a timeline with a measure used to size the circles and, optionally, another measure to color the circles. 

A circle timeline combines a time series, a dot plot, and packed bubbles into the same view.

February 23, 2021

Four Methods for Creating a Seismogram

No comments
A Seismogram is an alternative to a circle timeline. They are a great way of showing change over time, and are particularly effective when there are big variations in the dataset.

In this video, I show you how to build several version of a Seismogram:

1. Discrete Dates with horizontal lines
2. Continuous Dates with horizontal lines
3. Continuous Dates with vertical lines
4. Gantt chart Seismogram

February 4, 2021

How to Add Zeros for Missing Time Series Data

No comments
When working with time series data, Tableau understands how to populate dates that don't exist. For example, if you have sales for Jan 3 and Jan 5, Tableau can "add" data for Jan 4.

Great! But then you want to show zero in that cell. This tip shows you how to do just that.

September 25, 2020

#WorkoutWednesday 2020 Week 3: Orders by Day and Time

No comments

As time permits, I'm going back through some of the Workout Wednesday challenges that I've yet to complete. I'm starting with those that will help me most as a teacher to impart what I learn on those that I have the pleasure to train at The Data School.

For week 3, Lorna Brown challenged us to create a viz that shows the number of orders by hour of the day that allows the user to swap between day of the month and weekday.

In her solution, she chose to create two sheets, one for the day of the month and another for weekdays. I didn't know that when I tackled the challenge so I proceeded down the route of doing it all in one sheet. Success!

I did a couple things differently than Lorna:

  1. I combined the order date and time into a string calculation and then used the DATEPARSE function to make it a date/time field.
  2. The size of my circles depends on the option selected in the parameter. For day of the month, the size is the number of orders. For weekday, I have them set to a fixed size. I chose to make them a fixed size because otherwise the circles become way too big for the view.
  3. I used only one sheet.
  4. I am not showing a tooltip when there are no orders.

My solution is here and below as a gif.

June 7, 2018

Workout Wednesday: How does sales compare in the Current Period to the Previous?

No comments
It's been eight weeks since I've done Workout Wednesday. Sometimes you have to reprioritize things to get other things done. For me, WW was something I could cut out to free up more time for finishing the Makeover Monday book (pre-order here).

But I'm back and this week Rody gave us this challenge. Read all of the requirements here.

I had an idea straight away how to do this and in all it took about 30 minutes. The date offsetting took some tinkering, but the rest was pretty easy. I'm glad Rody is back from his hiatus too. His challenges aren't as brutal as Ann's.

Click on the image for the interactive version.

May 9, 2017

Tableau Tip Tuesday: Using LOD Expressions to Color Lines By the Most Recent Value

2 comments
This week's tip came about when working through a question at the Data School during our client project last week. The question was essentially:

How can I color each line on a line chart by the most recent value?
This requires a three-pass LOD expression. The key is to realize that Tableau created an aggregate table for each LOD working from the inside out. So

  1. Tableau calculates the inside LOD first.
  2. Then the second LOD is calculated based on the results of the first LOD.
  3. Then the third LOD is calculated based on the results of the second LOD. 

Make sense? I hope so! If not, let me know. Enjoy!

February 15, 2017

Workout Wednesday: Dynamic Trellis Chart

4 comments
For Workout Wednesday week 7, I challenge you to build this dynamic trellis chart. Special thanks to Chris Love for explaining to me why the trellis works the way it does. He has a great blog post series over on The Information Lab blog.

In this example, I'm using the same Superstore Sales I've used in previous Workout Wednesdays. Here are the guidelines:

  1. Match my colors.
  2. The user should be able to choose the level of detail they want for the date.
  3. The date axis format should not change, irrespective of the date level chosen.
  4. The user should be able to pick from the list of dimensions shown.
  5. The dimensions should be sorted from upper left to lower right based on the sales in the most recent time period.
  6. Match my tooltips. Note that they change based on the options the user selects. Pay attention to the date formats in particular.
  7. The title should update dynamically based on the date level and dimension selected.
  8. The end of each line should be labeled to the right of the last point. 
  9. There should be a little circle on the end of each line.
  10. Each section of the trellis should include a label for the value of the dimension for that section. E.g., California should be on the upper left when you selected quarters by state.
  11. The dimension labels should be centered in each section.
  12. There should be no gridlines, but the zero line should be included.
  13. Each row should should have a light divider between them.
  14. My final view is 900x700.

October 24, 2014

Tableau Tip: Blending data sets that have different max dates

3 comments
Fun little problem at work today. Imagine you have four data sources that all have a Date field in common, but they all land in your database at different times. You want a view of the data for the latest date that they all have in common.

Here's a sample of data the represents the situation:

            

Inside Tableau, these are four different data sources.  I blend them all together onto a single worksheet like this:


What I desire is to only show the data for the latest date that all four data sources have in common, 10/17/2014 in this example. While there might be a more efficient way to perform these calculations, I want to share the approach that I took to solve the problem.

First, I created a calculated field in each data source to get the max date. Note that I've set the table calculation to calculate along Date.


I then added each of these calculations to the view to make sure I was getting the results I wanted.


Sweet! This is exactly what I was hoping for. Next I need to determine which one of these four dates is the minimum and then return the date from that data source. This is the calc I created and it's kinda messy, but it works. Note this I set the calc to compute along Date.


This calc returns 10/17/2014, which is exactly what I was expecting. One more step. I need to create a calculated field to use as a filter in my view so that I only see one row.


I add this to the Filters shelf, set the Compute using to Date and choose True. That's it!


If anyone knows a more efficient way to do this, I'm all ears! Download the workbook here.

August 29, 2014

Two-way Sorting in Tableau - Sorting Some of the Viz by a Measure and the Rest Alphabetically

10 comments
I had an interesting requirement posed to me yesterday that I hadn't ever run into before. I'm using this Airline Delays data to demonstrate the technique. The requirements were along these lines:
  1. Given a list of airports, there are a subset that are "targets". Let's assume they are the top 15 with the most flights in 2014: ATL, DFW, ORD, LAX, DEN, IAH, SFO, PHX, LAS, MCO, CLT, EWR, BOS, SLC, LGA
  2. The airports need to be sorted by the latest delay rate.  However, only those in my top 15 list should be sorted by delay rate, the rest should be sorted alphabetically to make them easier to lookup.
  3. Include sparklines for each airport for 2010 to present.
This is the final product and here's how I went about solving this problem. There could very well be a more efficient method, but this worked for me.