## VizWiz

Launch, grow, and unlock your career in data

## #MakeoverMonday Week 13 - UK Trade With the EU Since the Brexit Referendum

I must admit I got a bit stuck with this week's dataset. It was very straightforward and I didn't like how anything turned out. With some ideas from the live audience on YouTube, I started comparing exports, imports and the trade balance. I then thought about a trick I had taught the Data School about using a timeline to filter.

Great, that's it! Wrong! The layout I had in my head was all wrong. I had to move some things around and then getting everything to line up took ages! Why or why isn't formatting easier???

Then, after creating the BANs, someone suggested that it would be good to show a zoomed in version of the line chart for the dates selected. I added those as sparklines with each BAN and it turned out so much better.

Watch the video here

## #WOW2021 Week 5 - Predicting HBCU Future Enrollment

Workout Wednesday 2021 week 5 required you to become familiar with the statistical functions in Tableau as well as being able to create predictions based on those stats. I hadn't done either of these before, so I knew it would be a good learning opportunity.

 View the dashboard here

Building the chart itself was simple. I chose to NOT truncate the axis as Candra did because it's not best practice to truncate the axis of an area chart as it skews the magnitude of change across time.

To create the Gaussian process regression, I found information on Tableau's website about the calculation and how to configure it. For Gaussian regression, the help says to use this formula:

MODEL_PERCENTILE(
"model=gp",
AVG([Days to Ship Actual]),
ATTR(DATETRUNC('month',([Order Date])))
)

However, when I did so, the chart and values were not the same as Candra's. So I used the MODEL_QUANTILE function instead. As always, the help within the calculation window was immensely useful.

Great, I now had the line chart. But I couldn't figure out how to get the prediction to extends another five years. A Google search for "predicting the future Tableau" sent me to this link.

Step 4: Extend the date range and densify the data was exactly what I needed. There's an Extend Date Range option in the dropdown for the Year dimension that I'd never seen before.

Sweet! Once in the Custom window, the configuration is very intuitive.

Some formatting, a few calcs to get the tooltips and title correct, and a sheet to trigger the change of the measure with a parameter action and done! Check out my solution here.

 View the dashboard here

## How to Create a Parallel Coordinates Plot Over Time

Typically a parallel coordinates plot compares multivariate, numerical data. However, you may want to create a parallel coordinates chart for a single variable over time. In this tip, I show you how to create that chart.

Resources:

## #MakeoverMonday Week 12 - How much do Americans spend on cereals?

Time really flew by on today's #WatchMeViz. Before I knew it, an hour had passed, I'd built lots of things, and I hadn't yet decided on my "final" visualization. So instead, I have three this week!

Watch the video here to learn how I built these charts.

## #WorkoutWednesday 2021 Week 11 - Gapminder: Income vs. Life Expectancy

As Lorna mentions in the week 11 challenge, the key is in the data prep. Once you have that, the visualization is really simple.

I did not use the new relationships model; I stuck with the traditional method of unions and a join as that's the most straightforward way to ensure you get the data in the correct shape.

First, you want to union together the three CSV files: life expectancy, population, and income. When you do that, you'll get this strange looking view that is super wide and doesn't have headers that mean anything.

What you should see, though, is that the headers are in the first row. To fix that, click on the drop down triangle next to the unioned data sources and choose Field names are in first row.

The years are nicely in the headers now. The next step is to select all of the columns with the years and pivot the data. Be sure to ONLY select the years.

I then renamed Pivot Field Names to "Year" and changed the data type to Number (whole) and also renamed Pivot Field Values to "Values".

Next, add the data source with the list of countries and drag it into the data prep area to create a join. You want to join "country" to "name". And now everything should look good. That's it for the data prep.

Now that the data is pivoted, in order to build the view, you need to create a calculated field for each measure: life expectancy, population, and income

All three calculations are the same. All you need to do is swap out the name of the csv. Lastly, build the view.

Note that the x-axis is a logarithmic scale and both axes have the option to start at 0 turned off.  That's it! I hope you found this helpful.

## #WorkoutWednesday 2021 - Week 2: Customer Lifetime Value (CLTV) Matrix

If you like a table calc challenge, this Workout Wednesday is for you. Get Ann's requirements here. On the surface it seems pretty simple:

1. Get the first order date for each customer.
2. Determine the number of quarters that elapsed since then.
3. Calculate the cumulative value of each cohort.

Steps 1 & 2 are pretty simple with an LOD and a calculated field. Step 3 is an aggregate calculation that Ann gives a big hint for and then it's cumulative across the view.

The tricky part comes when you try to get rid of any future quarters. The cumulative calc forces each cell to be filled in. The requirements say that you can't show any quarters after the cohort's latest quarter.

This is where the table calc magic happens. When I create complex calculations, I nearly always split them into multiple calcs because (1) they're easier to debug and (2) I can see my progress along the way and see where I am going wrong.

First, calculate the average lifetime value.

Next, calculate each cohort's cumulative lifetime value.

You should now have a view like this with the marks are filled in across the whole table

We need to figure out how to get rid of the marks when they start to repeat after each cohort's last quarter since birth. This is where the complex table calc comes into play.

Add this calculation to the Filters shelf, choose true and you're done! Click on the image below to view my version on Tableau Public.

## Mastering Containers in Tableau (Part 2) - Sales Performance Dashboard

Containers...you either love them or hate them. And I want you to learn to love them.

In part one of this series, I showed you how to build a simple KPI dashboard with three cards. In the video below, I show you how to build a more complex dashboard that requires 7 containers:

This video shows you how to organize the containers, how to use padding, and how to build an engaging dashboard for your stakeholders. Enjoy the video!

## #MakeoverMonday Week 11: The World's Largest Cash Crops

What a fun dataset! Thank you for your ideas during #WatchMeViz. Here are the video and final visualization.

## How to Create a Control Chart

Control charts are used to monitor the stability and control of measurements over a period of time. There are four elements to make an effective control chart.

1.  A control chart is a time series graph.
2. A line across the time series that represents the mean of all of the measurements in the graph.
3. Upper and lower control limits (UCL and LCL) that are displayed as a reference band across the view at a specified number of standard deviations from the mean.
4. Indicators to show which measurements are "out of control".

Typically, any measurements that are more than three standard deviations from the mean are considered unlikely and therefore outside the control limits. However, it is also common to consider measurements that are more than 1 or 2 standard deviations from the mean as a form of analysis.

In this video, I show you how to create a control chart that allows the user to specify the number of standard deviations at which to plot the upper and lower control limits.

## #MakeoverMonday Week 10: Female Participation in the Summer Olympics

First, thank you to Tommaso Ferri for moderating Watch Me Viz. I enjoyed working with this data set and was able to build nine vizzes in about 40 minutes, then took another 40-50 working through formatting and some pesky table calcs. I got there in the end!

After the live stream ended, I created one more version that uses containers. I think I like this one best. Below you'll find the live stream recording as well as the two final visualizations.

Thanks for watching!

## Mastering Containers in Tableau

The Workout Wednesday 2020 Week 53 challenge required extensive knowledge of containers in Tableau. Containers can be quite the mystery! It's taken me years to grasp them.

In this webinar, I showed what I've learned about containers, how to complete the Workout Wednesday challenge, and how you can master containers.

Resources:

1. Workout Wednesday Challenge - http://www.workout-wednesday.com/2020w53/
2. Data source (Superstore 2020.3) - https://data.world/vizwiz/superstore-20203
3. Workbook - http://bit.ly/WOW2020WEEK53

## How to Create a Circle Timeline

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.

## #MakeoverMonday Week 9 - Seats Held by Women in National Parliaments in the EU

This week's Makeover Monday was about representation of women in national parliaments and governments in the EU.

Original Chart

What works well?
• Clear title
• Line chart is a good choice for a time series

What could be improved?
• There are too many colors.
• What's the focus?
• The legend takes up a lot of space.
• The chart ratio is too flat.
• Overall, it's confusing and harder than necessary to find patterns.

What I did
I iterated through a series of line charts that helped me compare the countries, compare each country to the EU average, and compare each country to a specific country/year combination. The latter was created using parameter actions.

From there, I built sparklines, a trellis chart, and finally a stacked area chart and a starburst chart. The starburst chart looks cool, but it's really hard to read. I like the stacked area chart best. Pictures of both ae below the Watch Me Viz video.

I hope you learned a lot!