SANKEY DIAGRAM TABLEAU

preview_player
Показать описание
Learn how to make Sankey Diagram in Tableau through this amazing tutorial!

Sankey Diagrams display flows and their quantities in proportion to one another. The width of the arrows or lines are used to show their magnitudes, so the bigger the arrow, the larger the quantity of flow. Flow arrows or lines can combine together or split through their paths on each stage of a process. Colour can be used to divide the diagram into different categories or to show the transition from one state of the process to another.

INTRODUCTION
CONNECING TO THE DATA

2:02 - We'll connect the data, connect to our Excel file and we'll connect to our African mobile data Excel file.
2:15 - We'll bring in our sales data and you'll see that we have the full 1056 rows that we’re looking for.
2:41 - You have your SELECT statement, then you tell them what columns to bring in.
WORKING WITH DATA

2:57 - So what we're going to do, is we're going to take this; we're going to Union all, with the exact same data set.
3:24 - So we'll put it in segment right here, we'll call this "VizSide"
3:32 - Then over here, we're going to call this region, as "VizSide".
4:07 - So what we actually need to do, is somehow create these marks so Tableau will be able to draw the lines across them.  
4:38 - I'm going to walk you through the first steps of that data densification
5:22 -  So now we have ToPad, the thing is if you bring ToPad out to columns.
5:37 - But if you come down, you click on it you say create bins
6:17 - So we've basically done is used Tableaus in-memory engine, to create these extra marks
CREATING CALCULATIONS

6:31 - Next, we're going to create a calculated field called T.
6:44 - What this does is a little bit of an offset, that evenly spaces all our marks across the view.
7:10 - We have a value of 1 we have our value of 49 but we also have a mark for every single individual bin. This is the essence of data densification and data padding.
7:26 - So, now we have our vertical marks, we have vertical data sets, our horizontal marks.
8:01 - Now we're going to come in and we’re going to duplicate that, and we will edit, call this Rank 2 - I'm actually going to leave it entirely the same.
8:17 - The next calculated field we need to make is our sigmoid function. The sigmoid function right here off Wikipedia mathematical function with an s-shaped curve.
8:32 - So we're going to create a sigmoid. It is going to be 1 over 1 plus; now we need to use e; Tableau doesn't have e as a function but it does have an exponent function.
8:48 - So if we do exponent 1 that's the same thing as typing e. Then we're going to raise it to the power of negative T.
BUILDING A VIEW
10:17 - Ok those a lot of different calculations and now we get to the exciting part, where we're actually going to build out our view for a little bit.
10:55 - At this point we'll need to add in the two sides of our table or the two sides of our visualization that we’re building.
11:13 - So we want it to include Segment, we want to include Region and then we want to include Padded because it tells you go from Segment to go to Region a long Padded.
11:30 - Coming up to Rank 2 we're going to use all three again, but in this case, we want it to go from Padded, sorry from Region to Segment to Padded.
11:42 – And then for T we're going to make sure that it's using Padded so that our sigmoid function is able to comprehend every single mark.
12:19 - In the same spirit we will come to our curve and make it go from 0 to 1.
12:46 - Then we can come in we can hide our headers and we have very good makings of our Sankey Chart.
13:44 - So, what we need to do rather than using sum sales itself, we're going to create another calculation. We call this a Sales Sizing and we'll use a table calculation in order to trick Tableau
15:27 - We want to come into our color scheme as well and rather than being blue orange red will make it blue orange green just so it matches our Sankey Chart.
CREATING A DASHBOARD
16:13 - Now we're going to create a dashboard that has all three of them.
16:25 - So first we're going to bring in our Sankey Chart. Then we'll add in Segment to the side and we'll add in Region to the other side.
16:40 - Then we'll do some more cosmetic stuff where we'll hide the actually don't need these titles either. As we come through we can format we can get rid of our gridlines we can get rid of our 0 lines clean that up a little
17:22 - A couple more cosmetic things we're going to do real fast. Our tool tips are really distracting at this point. So I'm going to go, I'm going to disable them on all of our charts.
18:18 - The last thing we want to add is actually some dashboard actions.
Рекомендации по теме
Комментарии
Автор

Legacy connections is gone, the first step isn't needed anymore to union tables. Drag the first sheet over, then grab the same sheet again (second one) and drop it ontop the first one to create the union. You'll notice your rows number double, and Tableau will create a column called Table Name on the far right that labels the 2 unions for you ( a '1' is added to the name, you'll see when you scroll down to the bottom half). You won't need to do the Custom SQL now because it does this making the Table Name column. This tutorial worked very will for me, thank you.

Sunshine
Автор

Simply brilliant! we need creators like you who are to the point! Simple and clear

mukeshs
Автор

Can't thank you enough for this one. Great example. Good pace. Perfect level of detail (no pun intended). Brilliant.

wrandyrice
Автор

Amazing tutorial! I was quite intimidated by the Sankey chart when I firt saw it a few days ago. It looked fascinating but I thought, as a beginner at Tableau, Sankey is way above my level and it would be months before I can actually make one. Even with this tutorial it is a tricky chart to get right. I had to watch this video over and over to get the calculations right. I feel so great now that I have actually made a Sankey chart showing the flow of CO2 from world regions to each year from 1960 to 2011, with actions enabled for regions and years on the Dashboard. I learnt an aweful lot here, thanks to the clean instructions in this tutorial. Sankey is a such a great chart to show so many variables in a single screen.

monalisahota
Автор

Great Tutorial. Thanks for this awesome explaining of the Sankay Diagram in tableau.

seif-ep
Автор

You explained that so clearly. Had mines working by the time the video ended thanks!!!

dxwallace
Автор

Amazing, thank you for this tutorial. Very helpful

walidtaha
Автор

it is a great video to learn quickly sankey chart. awesome...amazing....

hasanhabibjony
Автор

wow thanks for this video! very useful for my internship

romylongpre
Автор

Thank you for this wonderful video on Sankey chart!

chandankumarv
Автор

Incredible work! I always wondered how to make visualizations like these and this video came from heaven itself!

masterludovicus
Автор

Great Tutorial. thanks for explaining this and trying to explain the calculated fields in a user friendly way.

bibbyschannel
Автор

Tutorial very well done. BRAVO and thank you ! The visual effect is powerful

sylvainalende
Автор

Thanks man, appreciate your efforts! 👍

pratikbawane
Автор

Awesome -- exactly how tutorials should be done! Thanks so much!!

hpstr
Автор

Great tutorial - clear, easy to follow, and even explaining why it works - nice work!

stephenstreet
Автор

Extremely cool. Thanks for making this method so accessible.

boomboomhilarious
Автор

This, is absolutely superb. Thank you very much. Simply outstanding.

garyf
Автор

Thanks a lot. It worked for me EVEN I was working with count and percent of total of count. Thanks Thanks. Even sankey extension is of no use in my case . As handling with bigger data, I just adjusted my axis accordingly. But step by step explanation made easier to play around. Thanks a bunch.

Alina-tcjq
Автор

This is a fantastic method to follow. I love this method of visualization and this video was exactly what I needed to add Sankey charts to my arsenal of options. Thank you!

JeremyWareTube