The series, Tableau charts has always focused on one thing, helping Tableau users learn how to create different charts and graphs hence equipping them with different techniques of telling each data story. Inspired by the mission of this series, we’ll explore on how to create a Bullet graph in Tableau.
Tableau has different techniques to achieve the same credible results and therefore in this article, we'll discuss two techniques of creating a bullet graph.
This method is one of the simplest ways to create a bullet graph using the Show me tab, lets build a simple bullet graph using Superstores data set packaged with Tableau app. Our goal in this article is to demonstrate how we can measure Sales performance against a target.
In this hypothetical case, we'll assume that Sales in the year 2015 were projected to grow by 20% from the previous year (2014). Lets build our bullet graph in such a way that it will show us how actual performance compares with the projected Sales. But first,..
Lets calculate, the target Sales in 2015 (i.e 20% growth of sales recorded in the year 2014). Using the formula below.
Next, lets calculate the actual Sales in 2015. So that we can compare it against our target.
Now that we have set our fields, lets create a bullet graph that will help us track performance against the target for different Sub-category's.
Drag dimension field Sub-category to the Rows shelf.
Drag measure field Target in 2015 and Actual Sales (2015) to the Columns shelf.
On the Show Me tab, select Bullet graphs.
See the resulting graph.
Lets add some formatting and differentiate Sub Products on target from those progressing.
To do this, right click on the axis and select Edit reference line. Change as shown below.
Above calculation helps us show the 50 & 80 percent of target amount respectively. (Note this can be specified according to users needs) Using the calculated field below to show Sub Category performance we have.
Resulting graph on adding above calculated field to the color tab.
In the second procedure, we'll hack a few tips on use of reference lines to materialize our goal.
Drag dimension Sub-Category to the Rows shelf.
Drag Measure field Target in 2015 to the Columns shelf. (Note, resulting chart by default is Bar chart, if different for your case chose Bar under marks card).
Drag measure field Actual Sales (2015) to the Details tab under marks card.
Right click on the axis and select Add Reference Line.
First reference line.
Fill as shown below.
Second reference line.
Add another reference line as shown below.
Adding the two reference lines above and dragging the condition formatting field above to the color tab we have the graph below.
Looking closely at the two resulting charts above, you'll agree with me that they are the same in every detail. This chart can pin point at a glance, the Sub Category's met and exceeded their target, while at the same time show the Sub-Category's below target, indicating whether their performance has surpassed 50 or 80 percent of the target.
Kindly you can chose the suitable technique for your assignments.
Thanks for reading.