Here are the steps:
1.Download and open the template workbook
2.Add your data source and UNION it with itself.
3.Rename two dimensions as Source and Target. And rename one measure as Size.
Note that in Sankey chart, we may interchangeably use Source/Target, Input/Output, Left/Right to refer to the same two dimensions on both sides of the chart.
4.Replace template data source with your own data source.
Due to a bug in Tableau's data replacing process, you may notice that the Top N Target Set is not being properly replaced. We have reported this bug to Tableau Corporation. The workaround is as follows. After opening the Set in Editor, you may see that the Set is changed from the template setting (By field before replacing data source) to By formula setting.
Size in the latter setting is grayed out. The fix is simply adding a space after the Size as shown in the image below.
Extra features:-A parameter is created for you to show the Top N outputs plus Others.
-One can chose to color the branches by Source or by Target
-One can always sort Source if one wishes.
Voila, it's done. All feedback is welcome.
Sankey Chart Series in Tableau
5.A Template Approach to 3-Stage Sankey Chart
3.Creating Sankey Chart with Grouping
2.Creating Multi-Stage Sankey Chart via Template Cascading
1.Creating Sankey Chart Made Easy via Template
Thanks a lot Alexander for this awesome template. it worked with me however I have a problem with the axis alignments between Bar1, Bar2 and the curve. Could you please help me?
ReplyDeleteYes. How? If you don't mind, send me your workbook.
DeleteThanks a lot Alexander for your quick reply, would you please share your email address?
DeleteMany thanks
Alexandermou2000 at gmail
DeleteThanks a lot
Delete