VizWiz

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

February 4, 2025

How to Exclude Reference Lines from Grand Totals in Tableau

No comments

Ever added a reference line to your Tableau visualization, only to see it appear in the grand total row, even when it doesn’t make sense?

If your grand total uses a different aggregation than your main data (e.g., SUM vs. AVG), the reference line can be misleading. 

Unfortunately, Tableau doesn’t offer a simple way to exclude it—but there’s a trick to removing it while keeping your totals visible.

In the video below, I’ll walk you through the step-by-step solution to remove reference lines from grand totals.


Want to become an advanced Tableau user?

Unlock your full potential with Next-Level Tableau, the ultimate training program for Tableau users. Gain access to expert-led tutorials, live sessions, and a supportive community designed to help you master advanced skills, create stunning dashboards, and achieve your career goals. 

Learn more and take your Tableau skills to the next level today at nextleveltableau.com.

Unsure? Sign up for my free course at starter.nextleveltableau.com.


June 4, 2024

Find Red Flags in Your Data in ONLY 5 MINUTES with Control Charts

No comments
If you like this video, you'll love learning from me 4 hours per week in Next-Level Tableau. Join here.

Control charts are one of the best charts you can use for identifying outliers in a series of measurement. So what are they?

Control charts are used to monitor whether a process is performing consistently over time. It's basically a line graph that tracks data points collected at specific intervals, but with three key additions:

1. 𝗔𝘃𝗲𝗿𝗮𝗴𝗲 𝗹𝗶𝗻𝗲: This horizontal line represents the average performance of the process based on historical data.
2. 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗹𝗶𝗺𝗶𝘁𝘀: These are two additional horizontal lines, one above and one below the center line. They are typically 2-3 standard deviations from the average, but can be whatever number of standard deviations work for your situation. These limits reflect your "stable" range.
3. 𝗢𝘂𝘁𝗹𝗶𝗲𝗿 𝗶𝗱𝗲𝗻𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻: Color-coding the outlier marks helps you more easily identify the problems.

The line chart you create will help you see if measurements fall within the control limits. 

- If they do, it suggests the process is in control. 
- If they fall outside the control limits, it indicates a potential problem that needs additional analysis.

Control charts are widely used for quality control purposes (especially in manufacturing), but they can be applied to any process where you want to track performance over time. 

Download the workbook here.

May 25, 2024

How to Create a Dot Strip Plot in Tableau

No comments
Dot strip plots help visualize the frequency and distribution of small, discrete data sets. Dots placed in order on a strip are a space-efficient method of laying out ranks across multiple categories.

May 3, 2024

How to Make Your Cycle Plots Actionable in Tableau

No comments

Cycle plots are a fantastic way to identify seasonality in a data set. And you can make them even more useful by adding indicators for whether they are above or below the average.

Here's how you can do that in Tableau in only 2 minutes.

Like this? You'll love Next-Level Tableau. Learn more at nextleveltableau.com.

January 6, 2023

How to Create a Two Color Area Chart in Tableau

No comments

In this week's Watch Me Viz, I showed the problem this tip helps solve. An area chart in Tableau only allows a single color. Like this…


What we want is an area chart like this with two colors. 


In 9 simple steps, I’ll show you how to build it. Follow along with the video. The 9 steps are listed at the bottom of this post.


STEPS

1. Create the area chart

2. Show what happens when you add a profit to color - you only get one color

3. Duplicate the measure

4. Fix the axes

    1. Top axis starts at 0

    2. Bottom axis ends at 0

5. Choose a color for each area chart

6. Format the axes to get rid of 0

7. Add reference lines to scale the charts relative to each other

    1. WINDOW_MAX(ABS(SUM([Profit])))

8. Duplicate for the negative reference line

9. Formatting


December 6, 2022

#MakeoverMonday Week 49 - How good are Americans at perceiving demographics?

No comments
I really liked the original visualization by YouGovAmerica this week, so during Watch Me Viz, I spent the hour working to replicate it. 

Easy to replicate:
  • Barbell chart with dots on the ends and a line connecting them
  • Coloring the lines by the larger value
  • Choosing the colors
  • Formatting the view (except the labels)

Challenges/things that should be easier:
  • Labeling the dots/ends of the lines; this took several iterations on the calculations
  • Creating the color legend as headers; I had to use reference lines, turn on totals, move the totals to the top, then work on the formatting to get them close. They still aren't perfect.
  • Creating the horizontal reference lines; this required me to create a dummy axis

While there are only 3 challenges, I estimate those three challenges took 75-80% of my time. I can only imagine how much more productive I could be if formatting didn't take so long.

In the end, I'm satisfied with how close I got to recreating the original chart. I like the additional context I added by coloring the lines connecting the dots.

If you missed #WatchMeViz, check it out below. Below the video is my final visualization.


November 8, 2022

#MakeoverMonday Week 45 - Who Americans Spend Their Time With

No comments
I found this week's data set super interesting, but also super sad in some ways, like people are more and more alone as they age. Or people spending less time with their partners when they are much older, clearly showing when people typically pass away.

I found the original visualization quite good, so during #WatchMeViz, I spend the hour replicating it. You can see during the video how much time formatting takes, and how I got annoyed about a new bug with colors. In the end, I go pretty close to the original, but some of the highlighting, and particularly the speed of the interactions couldn't be replicated in Tableau; Tableau simply isn't as responsive.

My viz is below the video or check it out here.


September 5, 2022

#MakeoverMonday 2022 Week 36 - Median Age at First Marriage in America

No comments

This was a relatively simple data set and I was able to build quite a few vizzes during Watch Me Viz. I ended up with something more complex that it needed to be, but it was fun figuring out how to create the calculations.

Here's how it works:

  1. Compare the median age at first marriage of each state to the US average for 2006-2010
  2. Compare the median age at first marriage of each state to the US average for 2015-2019
  3. Check whether the State 
    1. Stayed above the US average in both time periods
    2. Stayed below the US average in both time periods
    3. Moved from below the US average to above the US average
    4. Moved from above the US average to below the US average

Got it? Yes, it a bit confusing. In the end, we were able to highlight 6 states that moved above the US average to below the US average. All others stayed the same. What does this mean from an analytical perspective? Probably nothing, but it looks better than the original.

Check out the viz below the video or here.

August 17, 2022

Analyzing Seasonality with Cycle Plots

No comments
Cycle plots are exceptionally useful for analyzing seasonality in time series data. In this video, I walk you through two examples that show the limitations of traditional time series analysis and two examples of how cycle plots overcome these problems. 

Inspired by: Jon Schwabish
Download the workbook here.

July 1, 2021

#WOW2021 Week 22 - Can You Structure the Unstructured?

No comments
Week 22 was quite the tricky challenge. The idea itself is quite simple, but you had to (1) use REGEX to get the number of bedrooms (thanks to Sylvie Imbert at The Data School for her help!) and (2) know how to create bins without using the BIN function. 

Unless you've done it before, you likely will get quite stuck figuring out how to create the bins because it requires a hidden function...SYS_NUMBIN. I won't go into detail here; you can read more on Jeffrey Shaffer's blog here.

Check out how we did it by clicking on the image below.

May 17, 2021

Designing for Mobile First - Sample Mobile Sales Dashboard

No comments
Last week, I was teaching DS23 about mobile design. We reviewed the pros and cons, what to think about from a user and usability perspective, how to make the most important information easy to understand, etc.

We then picked an image of a mobile dashboard we found on the internet and worked together to rebuild it. We started by creating a default dashboard, then looking at what Tableau's Device Designer would do to it.

We then decided to create a mobile-only dashboard as our use case what executives on the go. This also gave us a great excuse to practice using containers.

Enjoy!

May 3, 2021

#MakeoverMonday 2021 Week 18 - Realized vs. Granted Compensation for CEOs

No comments
In this session I first reviewed the original visualization, then went into data discovery and analysis before finishing with a new visualization.  Watch the video and interaction with the visualization below.

Charts created: 
  1. Line Chart 
  2. Stepped Lines 
  3. Variance to baseline 
  4. Win/Loss chart 
  5. Comet Chart 
  6. Gantt Chart 
  7. Bar chart w/ reference line 
  8. Connected scatter plot 
  9. Slope Graph 
  10. Circle Timeline 
  11. Heatmap 

Resources: 
  1. Data Set - https://data.world/makeovermonday/2021w18 
  2. Chart chooser - https://datavizproject.com/



April 27, 2021

How to Create a Dynamic Quadrant Chart Using a Set Action

No comments
A quadrant chart, by definition, is a scatter plot with a background split into four equal sections. Typically, though, the sections are divided up as to how they compare to the average of both axes. 

In this video, I show you how to make the axes you want to compare to dynamic. I show you how to use a set action to change the reference point to which each quadrant is compared.

April 22, 2021

How to Create a Dynamic Quadrant Chart Using a Parameter Action

No comments
A quadrant chart, by definition, is a scatter plot with a background split into four equal sections. Typically, though, the sections are divided up as to how they compare to the average of both axes. 

In this video, I show you how to make the axes you want to compare to dynamic. I show you how to use a parameter action to change the reference point to which each quadrant is compared.

February 8, 2021

#MakeoverMonday Week 6: Why Are Women Perceived to Be Unequal to Men?

No comments

Wow! What a fun #WatchMeViz that was! I iterated through 16 charts and then when the idea solidified, there was some great conversation and feedback on the chat to help me get to the end. I find survey responses quite difficult to visualize, so instead of getting frustrated, I thought about all of the ways I can compare data to see if anything would work.

Most importantly, thank you to all of your on the live chat. It makes a huge difference to me and I love getting your feedback and questions along the way. You make me better. You can find the final visualization below the video.


December 1, 2020

How to Create an Evenly Distributed Butterfly Chart

No comments

A Butterfly Chart is (typically) a bar chart where two sets of data series are displayed side by side. The purpose is to allow you to compare the two data series across a dimension. 

Here is an example of a butterfly chart I created for Makeover Monday.


Notice how I have zero at the center and the scales are the same on either side of zero. This helps show how the chart "leans" to one side or the other.

The comparisons would be more difficult to see if the left and right hand sides of the butterfly did not have the same axis scale. In this video, I show you how two examples for creating a butterfly chart.

November 5, 2019

#TableauTipTuesday: Using Level of Detail Expressions to Count Items Exceeding a Threshold

No comments
In this tip, I show three examples of using Level of Detail expressions to count members of a dimension in a view. I also show how parameters can be used for counting members based on thresholds.

I ended up babbling quite a bit as I created more examples; sorry for that, but I was on a roll.

June 8, 2019

#WorkoutWednesday Week 22: X% of Sales make up Y% of Orders

No comments
This was a tough one. For Workout Wednesday week 22, Lorna set out the challenge of reproducing a trellis chart with each pane being a separate Pareto chart or sales vs. number of orders.

Great! That part was pretty straightforward. I've done a Pareto tons of times. I've done a trellis tons of times.

Then there was the coloring of the line. That is, the line needed to be colored in each pane up to the point where two reference lines meet. I got that right way...so I thought.

Lastly, there was the little detail (i.e., not so little) of creating dynamic reference lines that update based on both the parameter selected and the point which you hover over. The fact that these are two conditions should have been my first clue.

I spent quite a while on the reference lines trying to make one reference line act upon two calculations. Well...that's not how reference lines work. Then it hit me that I actually needed four reference lines. Two of them will always hide based on the option selected in the parameter.

PROGRESS!!!!

The calcs were fiddly. I got lost in the logic a couple times because what you have to do is a bit counterintuitive, kind of like double negatives. I wrote down the four scenarios so that I could approach them one by one.

My calculation names are a mess, which drives me insane and actually made getting to the solution much harder. I'm normally very good about making sure I have clear names, but in this case I had several with almost the same name, so I kept mixing them up, hence why writing things down helped.

Once I got that figured out, I was done. A bit of tidying, then I downloaded Lorna's solution to compare mine too. We had taken a nearly identical approach (it must be that teacher she had at The Data School that set her on her way).

Thanks for the challenge Lorna! I enjoyed the struggle and always love the eureka moments. This was another viz that I could easily see used in a business context.

May 28, 2019

#TableauTipTuesday: Create an Interactive Quadrant Chart with Parameter Actions

No comments
Parameter actions are now out in the wild with Tableau 2019.2. These have me going through A LOT of charts I've made with parameters before, evaluating which ones would benefit from Parameter Actions.

The first chart I wanted to try was a quadrant chart. A quadrant chart colors each quadrant based on thresholds set for each axis in a scatter plot. Previously, I created two parameters and the user had to type in numbers to adjust the view. However, with parameter actions, I can now enable to use to update the quadrants by simply hovering over a dot.

And here's the video...enjoy!

February 26, 2019

Tableau Tip Tuesday: How to Convert a Reference Line into a Level of Detail Expression

No comments
This week's tip builds upon my tip from two weeks ago: How to Convert a Reference Line into a Table Calculation. In this tip, instead of using table calcs, I'll show you how to convert a reference line into a LOD.

Enjoy!