This is the second part of a two-part series on Tableau Playbook - Funnel Chart. In the first part, we delved into the concept and how to build a basic funnel chart. Check it out in case you missed it.
In this guide (Part 2), we will practice two advanced funnel charts step by step: smooth funnel chart and colored smooth funnel chart.
I grabbed this dataset, "funnel_dataset_interview", from AnyChart. It is about Interviewing and Recruiting. This dataset records the pass rate of each stage, including Application, HR Interview, Testing, Revealing Information, Director Interview, and Offer. You can download this dataset from my Github.
As the number of blocks increases, the basic funnel chart is difficult to express clearly. To make the funnel chart look a bit more elegant, we can smooth it.
This time, we use the second dataset "funnel_dataset_interview.csv".
First, we build an area chart.
Now we have finished half of a funnel chart. We will create the other half by duplicating and axis reversal.
Add well-formatted and informative labels:
To show the difference percentage from the previous stage, we will create a Calculated Field "Percentage Diff". We can use LOOKUP function to access the previous stage. The complete formula is SUM([Percentage]) - LOOKUP(SUM([Percentage]), -1)
.
Drag "Stage", "Percentage" and "Percentage Diff" into Marks - Label.
Format both "SUM(Percentage)" and "Percentage Diff" as Percentage and set Decimal places to 0.
Expand Label card and format labels. Click the button of Text and edit the label as:
1<Stage>
2<SUM(Percentage)>, <AGG(Percentage Diff)>
Change the Font size and color separately. In order to highlight the decrease, we can choose red for the color.
Format the Alignment: Set Horizontal as Left and Vertical as Middle.
In the last step, let's polish this chart:
Here is the final chart:
Analysis:
Compared with the basic version, the smooth version looks more elegant, especially when the number of blocks increases. The smoothness of funnel chart edges allows us to judge the degree of reduction by slope.
Aided by the informative labels, especially the difference percentage from the previous stage, we can analyze the bottleneck more quantitatively. For example, we can see that, in the end, only 10% of candidates get Offer. The pass rate of Brief Interview by HR phase reduced the most.
With the same color, we find it difficult to distinguish the partition line between areas. We can make it clearer by coloring.
First, we need to create Calculated Fields for each Stage. Taking "Application" as an example, we input formula as:
1IF ATTR([Stage]) = "Application"
2OR LOOKUP(ATTR([Stage]), -1)="Application"
3THEN SUM([Percentage]) END
This formula calculates the sum of "Percentage" if the value equals to the current or previous stage.
We build it based on the area chart.
Drag "Measure Values" into Columns Shelf.
Now we have finished half of a funnel chart. As we did before, we copy and mirror the other half.
Right-click on the left x-axis and click Edit Axis...
Add well-formatted and informative labels. We use the "Percentage Diff", which we created in the previous chart, to show the difference percentage from the previous stage
Drag "Stage", "Percentage", and "Percentage Diff" into Marks - Label.
Format both "SUM(Percentage)" and "Percentage Diff" as Percentage and set Decimal places to 0.
Expand Label card and format labels. Click the button of Text and edit the label as:
1<Stage>
2<SUM(Percentage)>, <AGG(Percentage Diff)>
set Font Bold and Change the size separately.
Keep font color consistent with the area. Expand Font pane and choose Match Mark Color.
Format the Alignment: Set Horizontal as Left and Vertical as Middle.
Put on the finishing touches:
Here is the final chart:
Analysis:
On the basis of a smooth funnel chart, this chart is enhanced by coloring segments. Now we can distinguish the partition line between areas clearly. To help audiences understand, we keep colors consistent in areas and labels.
It is worth mentioning that this version has one drawback. In this implementation, the value is displayed on each line. And if you want to display it within the area, like other visualization tools, you can consider using a trick: adding the same or zero value as the dummy item at the end.
In this guide, we have learned how to build the smooth funnel chart and colored smooth funnel chart. For both two charts, first, we build it based on an area chart. Then we copy and mirror the other half. In the end, we add informative labels and do some fine-tuning work.
You can download this example workbook Funnel Chart from Tableau Public.
In conclusion, I have drawn a mind map to help you organize and review the knowledge in this guide.
I hope you enjoyed it. If you have any questions, you're welcome to contact me [email protected].
If you want to dive deeper into the topic or learn more comprehensively, there are many professional Tableau Training Classes on Pluralsight, such as Tableau Desktop Playbook: Building Common Chart Types.
I made a complete list of my common Tableau charts serial guides, in case you are interested:
Categories | Guides and Links |
---|---|
Bar Chart | Bar Chart, Stacked Bar Chart, Side-by-side Bar Chart, Histogram, Diverging Bar Chart |
Text Table | Text Table, Highlight Table, Heat Map, Dot Plot |
Line Chart | Line Chart, Dual Axis Line Chart, Area Chart, Sparklines, Step Lines and Jump Lines |
Standard Chart | Pie Chart |
Derived Chart | Funnel Chart, Waffle Chart |
Composite Chart | Lollipop Chart, Dumbbell Chart, Pareto Chart, Donut Chart |