Why Vizioneer?

My photo
Atlanta, Georgia, United States
The "Vizioneer" comes from mashing two words that have shaped my world for most of my adult life - Engineer and [data] Visualizations (or Vizes to those who know what's up). Graduating from first from Oglethorpe University in Atlanta, followed by Georgia Tech with my Bachelors and Masters in Civil Engineering, all of which taught me to think through anything and everything - problem solving, "engineering" solutions, teaching to the "ah ha" moments - is what I love to do. In 2010 that investigative, engineering mindset intersected a job change and a plunge into the world of Data Analysis. In the search for the next great thing I stumbled on to a data visualization and dashboarding product called Tableau software and things just took off. So now I guess you could call me that engineer with the sweet data visualizations - or just "The Vizioneer" :)

In 2013, I joined the incredible team at Slalom, focusing on Tableau and it's been an amazing experience. Recently in 2014, I was honored and humbled to receive Tableau's highest recognition of being named a Tableau Zen Master. Follow along to see what happens next :)

Wednesday, April 2, 2014

Day 2: Hidden Reference Line Totals

It was Aristotle who famously said: “The whole is greater than the sum of its parts.”  When you look at your data, you better hope that's not true :).  But in Tableau sometimes that can be tricky to validate.  So for today we're going to see how to take a sliced up bar chart and show the total of each of the bars.  This one is probably filed under "There has to be a way to do this, but I just don't know what it is".  I have good news for you!  Here we go...




Today (and for many of our days together) we'll be connection to everyone's favorite - the Superstore Excel dataset that comes prepackaged with Tableau.  We'll do this because it ensures that we're all starting from pretty much the same place.  So go ahead and connect to the data and we'll get started.

We're going to do a basic example that illustrates this trick.  Take "Region" and place it on the rows shelf, and "Sales" on the Columns shelf.  Next add "Department" on the Colors shelf, and finally add "Sales" again to the text shelf.  You're viz should look something like this:






















Now here's the fun part.  Without adding the three Department sales together, what's the sum of sales for each region? Sure you could take Department off the color shelf and see the total again, but now you've lost the breakdown we're currently looking at.  That's a non-starter, as I want to present more information, not less.

So here's the trick.  Right click on the X-Axis and select "Add reference line, band or box".  You should now be looking at a popup box that looks like this:


























Here's the goal.  Rather than creating an actual reference "line" we're going to make a hidden line with visible text, and the text will show the total sum of Sales for each of the regions.  Cool huh?

To do this enter the settings you see above.  
Click "Per Cell" 
Value: "Sum(Sales)"
Aggregation: "Sum"
Label: "Value" 
Line: "None" (this is done so that the line doesn't show, only the text showing the value of the total sum)

When you're done you'll now see the totals at the end of each bar.  It's likely that you'll need to do a bit more formating to get the text looking the way you want it.  So right click one of the reference line numbers, and select "Format".  My preference is to have right justification in the middle of the bar, but do as you see fit.  You could make the text larger, or change the units (maybe set it to $ Millions).  

And the final product looks something like this:






















And there you have it!  Simple but helpful, just as any good hack should be.



I hope you found this one helpful.  If so, I'd love to hear about it.  We're just getting started, so come back soon!  

Many thanks - 
Nelson 

9 comments:

  1. Nice hack. I've done similar using a dual axis with a circle shape and then making the circle transparent and adding a label. Going to give this one a try.

    ReplyDelete
    Replies
    1. Yep. That's the other way to do this. Both great solutions. Thanks for sharing that one as well!

      Delete
    2. reat Article. Thank you for sharing! Really an awesome post for every one.

      IEEE Final Year projects Project Centers in India are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Projects for CSE It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

      JavaScript Online Training in India

      JavaScript Training in India

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. Nelson: Nice tricks and very interesting blog. Johnathan Drummey, in a community forum, did similar trick to sync dual axis across multiple sheets on the dashboard using hidden reference lines and wanted to share that with you. Check this out at http://community.tableausoftware.com/thread/139697

    ReplyDelete
  3. Just wanted to say thanks again for this. I keep coming back to this over and over again to help clean up numbers on busy dashboards. HUGE help!

    ReplyDelete
  4. Wow, superb article you have written!!!! Very Informative and very useful to me. And am very glad to read your blog form starting to the end. Please keep on sharing.
    Tableau Online Training

    ReplyDelete