VizWiz

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

November 22, 2022

#MakeoverMonday Week 47 - Worldwide Railroad Infrastructure Quality Rankings

No comments
This week was a fairly simple data set. Rankings by year by country for a single measure. One thing I found tough to get my head around was the 1-7 scale of the quality ratings. I converted the values to a 1-10 scale instead.

I had limited time for #WatchMeViz, so I quickly went through a few techniques you will find interesting:

  1. Recreating the original bar chart
  2. How to create a bump chart
  3. How to use a diverging color palette and alias country names
  4. How to create a ranked dot plot
  5. How to use parameter actions to sort the view
  6. How to use a filter action to remove the highlighting

This definitely ended up being the largest viz I have ever created (1300x3200). You can view the dashboard below the video. Click on the image to view the interactive version (or click here).

I hope you found it useful. If you did, please give the video a like and either share this post or share the video so that you can help others...pass it along. :-)


June 22, 2022

How to Sort a Multi-Column Bar Chart with a Parameter Action

No comments
Let's say you have a chart with 1 dimension and 3 measures. You want to make sorting the bar chart by any of the measures as easy as possible. In this tip, I show you how to use parameter actions to sort the bar charts based on the measure you select.

April 5, 2022

How to Always Sort a Dimension to the Bottom of a Chart

No comments
In this tip, I show you how to use a calculated field to always sort a specific dimension to the bottom of a chart. You can also always have a dimension at the top, you simply change the sort from Descending to Ascending. This also works with column charts that sort left-to-right.


March 31, 2022

#B2VB 2022/W3 - Olympic Medal Tracker

No comments

If you're not participating in the Back to Viz Basics community project yet, you should be. It's all about creating effective, simple charts, which is exactly what you need to be able to do before you build anything fancy. This will definitely help you master data visualization best practices.

For week 3, the objective was to build a text table of Olympic medal counts. Sounds simple, but unfortunately, building good looking tables isn't one of Tableau's strengths. 

I also started the #WatchMeViz livestreams again. You can find all of them on this playlist. Thank you to those that attended live and asked good questions and left thoughtful comments. Below is the livestream as well as my final viz.

Until next week...


March 22, 2022

Two Methods for Labeling the Top N Values in a Chart

No comments

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.


July 6, 2021

How to Disable Sorting on a Worksheet

No comments
Let's say you have multiple metrics on a chart (not required) and you have sorted the chart in a specific way, for example by sales, and you want to prevent your users from sorting by something else.

It's quite simple! All you have to do is turn off the sort controls. In this short Tableau Tip, I show you how to do it. Enjoy!

May 31, 2021

#MakeoverMonday 2021 Week 22: The Plastic Waste Makers Index

No comments
This week I iterated through 18 charts and 3 dashboards. To be honest, I think a bar chart was definitely the best way to represent the data, but I wanted to do something different. I'm not convinced the scatterplot works.


April 26, 2021

#MakeoverMonday 2021 Week 17 - Price Parity in America

No comments

In this week's Watch Me Viz, I covered the following charts: 

  1. Line chart
  2. Trellis chart
  3. Slope graph
  4. Connected scatter plot
  5. Bar charts with comparisons
  6. Diverging bar charts
  7. Heatmap
  8. Hex map
  9. Tile map
  10. Barbell chart
  11. Peas in a pod chart
  12. Bump Chart
  13. Comet chart

In the end, I settled on the bump chart using highlighting and BANs. Other topics covered include:

  1. Sorting calculations
  2. Level of detail expressions
  3. Rank table calculations
  4. Parameters
  5. Filter actions
  6. Padding in dashboards
  7. Cleaning tooltips
  8. Divider lines in dashboards

View the final dashboard here.


August 11, 2020

#TableauTipTuesday - How to Disable Sorting

No comments

There are times when you want to prevent your users from sorting a chart. This video has the solution for you.

Enjoy!


November 19, 2019

#TableauTipTuesday: How to Create a Pie Chart Drilldown

No comments
This isn't something I can condone the use of, but I thought it was a fun technique for learning set actions. In this example, I show you how to create a pie chart inside of a pie chart where the inner pie chart will drill down based on the selection of the outer pie chart.

July 30, 2019

#TableauTipTuesday: How to Sort by Measure Names with Parameter Actions

No comments
Parameter actions are as powerful feature in Tableau. In this tip, I show you how you can update a parameter with the Measure Names field. In that past, you could never use Measure Names in a calculation, but parameters are now an exception because of parameter actions.

June 19, 2018

Tableau Tip Tuesday: How to sort first by the most positive values, then by the most negative values in a single chart

No comments
It was day 1 of Tableau training for DS9 at The Data School yesterday and we were practicing different sorting methods, including sorting by a discrete measure. I was then asked how we could sort positive values from highest to lowest followed by the negative values from lowest to highest. This helps emphasize the best and worst performers. The trick was doing this in a single chart.

Enjoy!

March 28, 2018

Workout Wednesday: Color and Ordering

2 comments
This week Rody challenged us to create a tabular view that has three columns, only one of which is colored and the user needs to be able to sort by a given year and metric. Find the full requirements here.

I had done something like this previously for the color. What tripped me up was the sorting calculation. It's not overly complicated. The only hint I'll provide is that you can't sort the subcategory by this calculation. Click on the image below for the interactive version.

September 20, 2017

Workout Wednesday: (It Takes) All Sorts

1 comment
Oh Emma thought she was being sneaky today in the week 38 challenge. We had a similar challenge last year for the Data School Gym. For this week, given the EU Superstore data set, you have to meet these requirements (read the full details on Emma's blog):

  • Create the highlight table showing profit ratio by ship mode and sub-category.
  • The columns should be sorted by the ship mode selected in the drop down first, followed by the remaining ship modes sorted descending by their overall profit ratio.
  • The Product Subcategories should be sorted ascending or descending (depending on end user selection) of the profit ratios for the selected ship mode.

For me, the last requirement was the trickiest part. In the end, I had to create two parameters and three calculations.

Good luck!

January 10, 2017

Tableau Tip Tuesday: How to Sort via a Cross-Database Calculation

1 comment

With Tableau 10 came the ability to create cross-database joins. In this video, I show you how to:

  1. Create a cross-database join
  2. Create a calculation across the data sources
  3. Use the calculation to sort the view
  4. Use the calculation as a boolean


August 10, 2016

The Data School Gym - Sorting a Dimension Member to the Top

10 comments

A fun Data School Gym challenge for you today. Using this data source of human height since 1896, create this visualisation:


Requirements:

  1. Each country should show only 1896 and 1996 and they should be connected
  2. Label the midpoint with the country name
  3. Use an orange to blue diverging color palette based on the Avg Height
  4. Allow the user to filter by sex (no All option)
  5. Create a parameter to allow the user to pick a country; it should also include an (All) option
  6. Use the parameter to sort the visualisation; (1) If (All) is chosen then sort from largest to smallest based on the 1996 value. (2) If a specific country is chosen, that should be displayed at the top and the rest should be sorted from largest to smallest.


When the user picks Bermuda, for example, the visualisation should look like this:


Here’s the interactive version. Post a comment with a link to your solution. Good luck!

August 8, 2016

Makeover Monday: Who’s Winning the Summer Olympics?

12 comments

With the Olympics starting this weekend, I thought we’d take a look at the most classic way that people display Olympic medal counts, as stacked bars. Being an American, I pretty much have only known NBC as the host of the Olympics, so when I went to their website and looked for historical medal counts, I was mortified. This viz is just about as bad as it can get.


What works well?

  • The countries are ordered from most medals to least.
  • There’s cute little actions when you click on the medals.
  • They used appropriate colors for each medal type.

Seriously, that’s all I see that’s any good. This is an incredibly poorly done graphic.

What doesn’t work well?

  • There’s no title.
  • There aren’t any tooltips, so I have no idea how big each bar is; I’m forced to guess.
  • I can only see seven countries at a time, and I can’t even see the name of the seventh country. I mean, who would ever want to compare only the 15th-21st ranked countries?
  • When I click on the scroll button, it scrolls by an increment of 2. Why?
  • Comparisons are nearly impossible with a stacked bar except for the total medal count and bronze.

Here are some of the changes I made:

  • I separated out each medal into a dot plot and chose to show only the top 25.
  • I included a summary next to each country to provide the exact medals counts.
  • I included a mobile view, but in this view I remove this summary for a better visual look.
  • I included informative tooltips.
  • I included a title so you know what the chart is about.
  • I included filters so the user can decide which Olympic games to include.
  • The "sort by" option allows the user to pick the medal count to sort by making comparisons easier.


April 11, 2016

Makeover Monday: From Millions to Billions

No comments

Today is my 9 year anniversary using Tableau. On April 11, 2007, I downloaded a trial of Tableau 3.0 and my life has never been the same. What better way to celebrate than working on Makeover Monday and creating my first mobile dashboard.

This week’s Makeover Monday was quite tough. How do you take a viz that’s already great and make it better? Or how do you tell the story differently? I wrote about this viz on my other site (DataVizDoneRight.com) a couple weeks ago. Here’s the viz again:


What works well?

  • Title catches your attention
  • Subtitle makes you more interested and sets up the story
  • Very well organized
  • Clear labeling of the headers
  • Pictures of the faces make it feel more real
  • Consistent use of colors makes it easy to understand and follow
  • Nice totals on the right for context and they’re out of the way as to not distract
  • Dark background works well and makes the bars pop out
  • Great tooltips!
  • Fantastic sorting interactivity
  • Great spacing; there’s a lot of information yet it still feels simple


What could be be improved?

  • Include a filter for gender
  • Include more women
  • Change the mark type for the ends


So given how good this is already and how little I saw that I could do to make it better, I thought I would use this week to practice making a mobile version, formatted for iPhone 6. I rarely create visualisations specifically for mobile and the only way to improve that ability is to practice.

Adding the filter for gender was easy. Including more women was out of scope.

Notice that I changed the ends of each bar to dots. I did this because I think the vertical bars are a bit tough to see; I wanted to make it easer for the viewer.

One challenge I had was that I wanted the sorting to be “touchable” like the gender filter is, but I couldn’t get it to work. I didn’t want to spend a ton of time fiddling with it, so I resorted to a parameter for the sorting.

I’d like to hear what you think about this mobile version. Does it work well? What could I do to make it better mobile experience?

March 16, 2016

The Data School Gym - Sort and Filter by % of Total

1 comment

A new week means another challenge in the Data School Gym. This challenge came about because Nai Louza had a tough calculation she needed help figuring out. Here’s the final result you should produce:

Click on the image for a larger version


Requirements

  1. Build a stacked bar chart that shows % of total sales for the East and West within each Product Sub-Category
  2. Sort the bars by the % of total sales in the East
  3. If you reorder the Regions, the sort should switch to the % of total sales in the West
  4. Provide a method for the users to pick how many product sub-categories they want to include


Hints

  1. You can do this with table calculations. You do not need to use LOD calcs.
  2. For the sorting, you have to figure out how to sort by only the value of the East (or West if you change the order on the color shelf).
  3. The Top N filter you see above is NOT a parameter.


You can find the final solution that I created here. Don’t cheat. Try to figure it out before looking at the solution. Reverse engineering is such a great way to learn.

January 5, 2016

Tableau Tip Tuesday: Using LOD Calcs to Sort by the Total of the Last N Days

3 comments
LOD expressions are still a bit of a mystery to me. I haven't had the "Aha!" moment yet when they magically click in my head. I am continuing to learn more and more about them and this week, I share a tip with you that allows you to sort a dimension by the total of the last N days picked by your user.

If anyone knows a better or more efficient way to do this, please share!