Warning! Really long post coming.....And it is all about how I created this viz in a Single sheet.
Recently, I created a visualization on the Batman Film series, as well as, a brief write up on how I did it. You can find the viz and post
here. It was an ok viz....but I felt like it wasn't great, and it was a pain to create, since I had to create a bunch of sheets and float them all together on a Dashboard. I wasn't sure what to do with it, so I sent it over to
Chris Love and asked from some feedback. Chris is a Tableau Zen Master, and a phenomenal Data Analyst. Chris was kind enough to compliment the viz for its strengths, but also pointing out its weaknesses and make suggestions on improvements. One of these weaknesses was the Jump Plot, while it looks cool, it doesn't add anything to the analysis, and it is distracting visually as well. After thinking on it, I realized I was forcing it to be in my viz, even though the was no real reason for it (I can justify "curves" when it helps aid in the visual engagement, the Jump Plot was not doing that here). He also mentioned how it was difficult to read, the Text Descriptions helped, but should they be necessary? So with that, I decided to go back to the Drawing Board.
Now, there are some things I really liked about the viz, mainly, the Parallel Coordinates Esq feel to it, with Smooth Transitions via Sankeys. But I thought it would be easier to read if it ran Horizontally, instead of Vertically. Here is the rub, in the original viz, I created 5 sheets and floated them all together....I did not want to do that again. So, I decided to challenge myself and do the entire dashboard in a Single Sheet. And so the Drawing began!
I'm pretty sure no one can read this but me (Because of my horrible handwriting) but I'll break it down, and how I accomplished it in Tableau.
1. The very first thing I needed to do was figure out how many Marks I needed, this would give me a base for setting up my Bin. I wanted to the 3 Columns to have 100 Marks (I did this to make it easier to plot the Parallel coordinate, more later), and each Sankey would take 49. I did this so the Sankeys were visually less proportional to the Columns. The Sankeys weren't the story, there were just there for effect. So 3X100 + 2X49 = 398 Marks. To the data!

The data is pretty basic, really it is just 8 rows with a few measures. But what I do it double the data source and have a Column called Bin with Values 1 and 398. This is so I can setup a Bin to densify the data in Tableau (If you are lost,
watch this video by Joe Mako). Now that I have my data prepped, off to Tableau we go! (Last note on this...you could also create a Scaffold Sheet with record 1-398 and then just Cross Join it to the main sheet. I chose to do it this way to push the Table Calcs necessary to build/keep densification. If performance was a must, I would have pre-processed every mark).
2. Now that I have the Data, it's off to build the Calcs! I already had an idea of how I could create them, but I needed to do prep calcs before I could continue. Since I was using Densification, I wrapped all of my measures in Table Calcs so nothing would break on me. Next, I created my Sankeys (
Tutorial here) but I had to make some modifications on the Ranks and T. Since I was transitioning Points by Ranks, as opposed to Percent of Totals, I used WINDOW_MIN(MIN([Rank])) for each of my 3 ranks (Film Release, Rotten Tomatoes and Worldwide Box Office). I then went on to T.

Normally, [T] would be calculated as (INDEX()-25)/4. So since we are doing 2 Sankeys at different points in the Lines, we need to break them out conditionally. My first 100 Marks is for Film Release, so I start the Sankey there and just add 25 to the First Position. I then just figure out where my next position is, and repeat the same process. This is just ensuring [T] generates the same values in the respective points on the Lines.
Ok, so I have my Sankey calcs prepped, and my fields wrapped in Table Calcs, it is now time to build the Axis.
3. If you could somehow read the my sketch above, you may have notice I already gave a primer on how to create the Y axis. Essentially, I had to break the Line into sections, and implement different calcs at each section.
If you haven't noticed by now, the order of this is backwards (Right to Left). I think of things in a strange order sometimes, so this made sense to me. But if you are doing something similar, you may want to think Left to Right. Starting from the Left, Box Office Rank (1-8), Then my Sankey from the Box Office Rank to the Rotten Tomatoes Rank, the Rotten Tomatoes Rank, then Sankey to Film Rank, then Film Rank....geesh! When you look at it, I am really just thinking in terms of sections and where I want things to happen. The calcs are written in the order the visualization appears.
Now that I have the Y, I need to X. Well lucky for me, the X is just INDEX(). So now let's build the initial view!
4. First thing to do now is create the Bin from 1-398 using the Bin field from early. Simply create the Bin on the measure, and set the size to 1. Then drag that Bin on the Details Shelf of the viz. Next, drag Film onto the Detail shelf, Y on the Y Axis and X onto the X axis. Should look kinda funny at first....
The reason it doesn't look correct is because the Table Calcs are not correct. What we need to do is Compute everything using Film and Bin, and restart it every Film. That way our Indexes and calcs are computed by Film individually and the Bin densifies the data.
Ok now we are talking! Now, I think Right to Left, but we see Left to Right, so let's just quickly Reverse the X axis to make things look right.
Now that we have the general structure, it is time to build on it.
5. Love thy reference lines! So we need to build out separators for 3 sections, 1 to break it up visually, 2 because we need to simulate and Axis for when we plot the Coordinates later. So I just went in and created Ref Lines at the beginning and end of each section, and gave a custom value equal to the beginning and end of each section.
I can start seeing my crazy idea coming to life! Ok so we have the foundation, and the sections defined, but I also want to include titles on each Section to help aid in the analysis. For this, I just created Annotations at each Section. Now we need to add the points. How do we do this? Dual Axis of course, but we have to define our Dual Axis first!
6. In order to get points in the Exact Position on the Chart, I need to do 2 things, 1 normalize the Marks to 100% (Remember the sections are 100 marks) and then ensure that is in the correct index range.
What I am doing it getting the MAX measure for Box Office (Via LoD) and diving each Box Office by it (100% Range). I would do the same for Rotten Tomatoes, but I know that range is 0-100%. Next thing I do is wrap it in a Table Calc, and subtract is from the Max End of the Section Range. Finally I just tell Tableau to only return the Index when it equals that value. (The calc also includes 398...after the initial build, I had the idea of adding Movie Covers)
Now that it is defined, drop it next to the X, Dual Axis and Synchronize.
Cool, we have the marks in the correct position, now we just need to actually define the shapes.
7. To create the Shapes, I needed to define the Shapes in the Rotten Tomatoes and Worldwide Box Office Sections the same, but different from the Film Covers. Off to another Calc!
Basically all I am doing is defining every mark in each section outside of the Film Covers, then defining each Film as it's own value. I wrap them as strings so I can assign shapes off of it. Now I can set each Film cover, and the other Sections as completely different shapes.
Looking good, but it has issues. The Circles are too big, and the Film covers are too small. To fix this issue I just created a calc to out on the Size Shelf (Simply INDEX()==398). This allowed me to increase the size of the Film Covers, while shrinking the size of the Circles, creating a much more clean look.
From here, I only have a few steps left (Told you before, really long post!). But I need to get the Labels in there for my Dual Axis. But they need to be formatted differently. What to do? Well they way I did was by creating a calc for each measure, and then stacking them next to each other on the marks card.
Essentially, I am defining the exact position of the Marks (Like I did for the Dual Axis) and then returning the Value. This allows me to format each measure uniquely, and I can NULL out the other marks. This then gives the illusion I wanted on the viz.
Ok, we have to be done right?! Not yet, but soon. I also added Tooltips, and, a conditional URL Action.
8. Conditional URL Action? Ben Jones was giving me some feedback, and said, "It would be great if when you clicked on the Movie Cover, you went to a website about it". Awesome idea! But how to do it? I didn't want every mark to be a URL Action, just the film cover, but it's one sheet...Well I found that URL Actions don't happen if the field you pass in is NULL. So I could create a Calculated Field that only generates the Link on the Film Cover mark, and none of the others.
Now when I setup the Dashboard Action, only the first mark will have a value, so only the Film Cover will open a browser. I also need to tell people that they can do that, so I created another Calc with the same logic that returns "(Click to learn more)" and have it only appear on the film cover.
Now we are onto last minute cleanup! Pretty simple, Show Title (For Title), Show Caption and Write your Footer (Using a Caption like a Footer is a trick I picked up from Adam Crahen), and add Row Borders to separate the Viz from the Title and Footer.
And we are Done! Was the Juice worth the Squeeze? Not too sure, but there was a lot of learnings in doing this. It made me really think about what Tableau can do given a little imagination, math and calcs. There are a lot of features, like annotations, ref lines, etc, that can be used to things they weren't necessarily meant to do. You can generate Shapes, and Marks conditionally by using logic and you can even create sections with different vizzes on a continuous stream. Maybe this isn't a great Data Viz, and there are probably more efficient ways to display the data, but this Viz is Fun. It's fun data, fun to make and learned things.
If you have made it this far, THANK YOU for reading. I hope there was at least trick/tip you picked up that would be useful. If you have questions/comments, please leave them below!
Rody