August 15, 2024
How Popular is Your Birthday?
Click on your birthday to see how popular it is.
June 30, 2024
How to Rank & Filter the Top 5 in Tableau in Under 60 Seconds!
March 11, 2024
#MakeoverMonday 2024 Week 11 - Housing Vacancies in America
- Size - 1000x475
- Max 4 containers; no tiled containers allowed
- Filter out Alaska, Hawaii and Puerto Rico
- Clicking on a MSA in the map highlights the MSA in the map and bar chart and changes the MSAs that are displayed in the bar chart
- The bar chart shows the rank of the MSA for the metric selected.
- There should always be 11 bars (though I didn't test the lowest rank).
- The label on the end of the bar and in the map reflect the formatting of the measure selected (i.e., either whole numbers or a percentage to one decimaal).
- Include an option to change the measure and to change the number of MSAs on the map.
- Create a mobile view
- NO LODS!
November 22, 2022
#MakeoverMonday Week 47 - Worldwide Railroad Infrastructure Quality Rankings
- Recreating the original bar chart
- How to create a bump chart
- How to use a diverging color palette and alias country names
- How to create a ranked dot plot
- How to use parameter actions to sort the view
- How to use a filter action to remove the highlighting
August 29, 2022
#MakeoverMonday 2022 Week 35 - The World's Biggest Military Spenders
Makeover Monday is back! Every Monday I'll be running a #WatchMeViz and every Wednesday, Eva will be running #VizReview. Subscribe to my YouTube channel for reminders of the latest events.
https://youtube.com/andykriebel
This week was a makeover of a visualization by Visual Capitalist about the top 10 military spenders. During Watch Me Viz, I iterated through 15 different charts before settling on a bump chart. If you want to learn about sets, parameters, table calculations, containers and more, watch the video below.
Below the video you can see my viz, or click here. Enjoy! If you need clarifications on anything, please comment on the video here.
July 5, 2022
How to Create a Hexbin Map in Tableau
In this tip, I show you how to create a hexbin map in Tableau. But first, let me explain the purpose, benefits and drawback of a hexbin map.
There are countless times when I have been asked to display way too much data on a map. Sometimes I’ve been asked to display thousands of points on a map..but why? I know no one will understand it.
A hexbin map uses hexagons to divide an area into multiple parts and assign a color gradient to each hexagon. This chart type is used to visualize density, where the hexagons dividing the whole space into discrete units of equal size.
This video is going to help you communicate the concentration of data on maps more effectively and give you another option for visualizing geospatial data. I’ll show you how to create a hexbin map based on both the value and the rank, giving you two options depending on your use case.
If you want to follow along, these are the data sources I used:
1. Austin Bike Accidents - https://bit.ly/AustinBikeAccidents
2. Austin Zip Codes Shapefile - https://bit.ly/AustinZipCodes
3. Price Summary - https://bit.ly/PriceSummary
March 22, 2022
Two Methods for Labeling the Top N Values in a Chart
In this tip I show you how to use the INDEX and RANK functions to label the top N values in a chart. I also explain the difference in how they work, and how the RANK function is simpler to configure.
January 19, 2022
Social Connectedness in the United States
NOTE: The insights you see in this post are based on an article by The Upshot from September 2018. Some of the insights and use cases demonstrated are the same and are shown in Tableau for demonstration purposes.
----------------------------
When I first saw the map that The Upshot created in How Connected Is Your Community to Everywhere Else in America? I was blow away by the simplicity of the map and how easy it is to understand the relationships of people in the United States via their Facebook friendships. The first thing you need to understand is the metric "Social Connectedness Index". You can access the data I used via the same link.
Here's the formula Facebook uses to calculate the index:
From Facebook:
Social Connectednessi,j measures the relative probability of a Facebook friendship link between a given Facebook user in location i and a user in location j. Put differently, if this measure is twice as large, a Facebook user in i is about twice as likely to be connected with a given Facebook user in j.
In each dataset, we scale the measure to have a fixed maximum value (by dividing the original measure by the maximum and multiplying by 1,000,000,000) and the lowest possible value of 1. We also round the measure to the nearest integer.
I was not able to match the color scale in The Upshot exactly, so instead I used a table calculation that ranks each County in the U.S. compared to the County selected by the user.
Close enough for me!
The data has columns for the State/County of the user and for State/County of the friend. To ensure that I was only looking at friends for the County selected, I used Parameter Actions to filter the user to the County and State selected. The rank calculation then only uses the SCI for the friends.
Now let's look through some of the use cases as described in The Upshot.
DISTANCE IS MOST IMPORTANT
STATE LINES ARE BOUNDARIES
MIGRATION PATTERNS
PHYSICAL BOUNDARIES
December 20, 2021
How to Filter by Rank Across Multiple Worksheets
In this tip, I show you how to use a parameter to filter the rank across multiple worksheets or an entire dashboard.
June 22, 2021
#MakeoverMonday 2021 Week 25 - Stop & Search in England & Wales
April 26, 2021
#MakeoverMonday 2021 Week 17 - Price Parity in America
In this week's Watch Me Viz, I covered the following charts:
- Line chart
- Trellis chart
- Slope graph
- Connected scatter plot
- Bar charts with comparisons
- Diverging bar charts
- Heatmap
- Hex map
- Tile map
- Barbell chart
- Peas in a pod chart
- Bump Chart
- Comet chart
In the end, I settled on the bump chart using highlighting and BANs. Other topics covered include:
- Sorting calculations
- Level of detail expressions
- Rank table calculations
- Parameters
- Filter actions
- Padding in dashboards
- Cleaning tooltips
- Divider lines in dashboards
April 12, 2021
September 1, 2020
#TableauTipTuesday: How to Find the Highest Selling Item per State with a Table Calculation
April 7, 2020
#TableauTipTuesday: How to Use Set Actions to Maintain the Rank of a Dimension Upon Filtering
This video shows you how to use Set Actions to filter a dimension while also maintaining the rank.
August 13, 2019
#TableauTipTuesday: How to Compare Ranks within a Dimension with Set Actions
And, when you display any players, you need to show their rank amongst everyone. This is where set actions come into play.
In this example, I show you how to compare any car to a car that you selected from a parameter. The car you select from the scatterplot appears next to the car selected from the parameter and the overall rank for each car is displayed.
May 1, 2019
The UK's Most Popular Baby Names
Sophie's Challenge
While Tableau is an amazing tool, when you use it all the time you can fall into data-viz-auto-pilot mode. You build the same kinds of charts; you construct similar kinds of dashboards; you fall back on the same formatting styles. While familiarity with tool, and a workflow, is a good thing, it also narrows your view of what’s possible.For today’s Dashboard Week challenge, I want you to step outside your data viz comfort zones and try building a viz using Flourish. Flourish is a free tool that lets your build interactive, responsive, and embeddable vizzes and data stories, all within the browser using your own data. Flourish is focused at the communication side of data viz (more than the data exploration side), and I’d like DS13 to really think about communication in today’s challenge.
Why Flourish? I really like their wide (and ever expanding) range of templates and interactivity (transitions, stories and ‘Talkies’ to name a few); also they are based in London – so why not viz-local?
Using any part (years, geographic locations, genders) of the England and Wales baby names data sets, I want DS13 to find and communicate one specific story from this data set.
Here are the rules for today, and what I’d like to see as output:
- They must work independently.
- Everything must be finished by 5pm.
- They must use Tableau and Alteryx for the data prep and exploration.
- The final viz must be made in Flourish.
My Approach
First, I had to get some data. I decided to download the data from the ONS for 1996-2016 because it was in a relatively decent format.Next, I opened the "Plotting Competitors" example because I loved the animation. The great thing about Flourish is you can immediate use the template. All you need to do is upload your own data, assign the columns, and you're done!
November 26, 2018
Makeover Monday: The Cost of a Night Out
What works well?
- Choosing a topic that is relatable
- Good title and subtitle
- Sorting the bars from most expensive to least expensive
- Using colors that are easy to distinguish
- Including the labels on the ends to the bars
What could be improved?
- Lose the icons on the lower right
- Remove the gridlines and axis labels (they're not necessary if the ends of the bars are labeled)
- Remove the flags next to each city; First they add no value. Second, the data is about cities not countries.
- The title is a bit misleading; this is only a selection of cities.
- Using a stacked bar chart makes comparisons across the items difficult; maybe if this was interactive and you could choose the item to sort by, it would work better.
What I did
- I wanted to make the comparisons easier, so I chose to create a bump chart.
- I added a highlight selector so the user can focus on a single city, yet keep the others in the view for context.
- I sorted the values from least expensing (top) to most expensive (bottom).
October 2, 2018
Tableau Tip Tuesday: How to Filter a Dimension and Maintain the Rank
I gave one solution which would show and hide dimensions, but Craig's is way way better. It's a neat way of using table calcs to filter a dimension since a table calc filter happens AFTER other table calcs are computed.
Also, in the video I reference our new meetup, Let's Talk Data. If you're in London, there will be tons of events at the new home of The Data School. If not, don't fret! We have some virtual events as well.
With that, here's the how you can filter a dimension and maintain the rank.
August 9, 2018
History of the Premier League Table
When I originally created this, I had to use table calcs to get the stepped lines to work, which can get complicated and is very time consuming. Now with stepped lines, it merely a matter of changing the lines type.
I decided to add in a couple of user options:
- Which team do you want to highlight?
- How do you want to compare the teams? By total points for the season of the final position in the table?
- Not all teams have been in the EPL for all 17 years, so I provided an option to filter down to just the teams that have been in the EPL for the user specified number of years.