Waffle Chart in Tableau
Definition:
Waffle chart is a 10 X 10 cell grid in which each cell represents 1 percentage point summing up to total 100%. Waffle charts can be represented with conditional formatting where cells are highlighted with different colors based on the percentage value of that KPI.
There are following used cases of Waffles chart:
- To see a high-level view of items and their contribution to a whole
- Showing different KPI’s percentage value
Although we can notice that the use cases of Waffle chart are similar to the Donut Chart but, Waffle chart represents the 0-100% KPI attainment or overall percentage value in a more visually appealing way.
In this article, I am going to mention the steps that required to build a Waffle chart in the Tableau
Objective:
Let consider our objective is to build a Waffle chart to show the overall percentage sales of South and West regions together.
This is how the Waffle chart will look like:
Pre-requisites for data sources:
To create a Waffle chart, we are going to use two different data sources:
- “Waffle Chart Data.csv”: This dataset is used to build the base of 10 X 10 cells grid. In this data set we have the following two fields:
- Columns: This field contains a value from 1 to 10
- Rows: For each “Column” value, this field contains a value from 1 to 10
Thus, this results in a total of 100 rows of the dataset You can get the data here: Waffle Chart Data
- “Sample – Superstore”: It is the in-built tableau data source. This data source is used to get the total percentage of sales of South and West regions.
Steps:
Following are the steps:
- Connect to both “Waffle Chart Data.csv” and “Sample – Superstore” data sources. For reference, purpose data is attached along with this article
- Go to Sheet1:
- Select “Waffle Chart Data” data source and do the following:
- Select “Sample – Superstore” data source and create a calculation to get the value of “South” and “West” region’s sales as a percentage of overall regions sales:
South West Sales = SUM(IF [Region] = “South” OR [Region]= “West” THEN [Sales] END)/SUM([Sales]) - As a next step, we will select “Waffle Chart Data” data source and create the following calculations:
- Shaded Portion: This is calculated based on the percentage value of “South West Sales”. It is used to highlight the portion of 10 X 10 grid to represent “South West Sales” percentage
- Unshaded Portion: It is used to highlight the remaining portion of 10 X 10 grid which is not covered by “South West Sales” value
- Now, bring the both “Shaded” and “Unshaded” calculated fields into the view by double-clicking on each field. Also, drag “Measure Names” in the “Color” Marks card
- To make the chart visually more appealing, we can do the following mentioned formatting changes:
- As the last step, we will change the chart title to provide the required information about the chart. Finally, the Waffle chart will look like:
Not a very good visualization of a waffle chart. Removing “Measured Values” from the columns shelf and using the square mark instead of bar looks better. But the visualization is broken anyways because the blue is not in sync with the rest of the “shaded”. On top of that, a text % on the chart somewhere would look a lot better
Nice instructions. loved this.