How to create a butterfly chart in Tableau

This recipe helps you create a butterfly chart in Tableau

Recipe Objective - How to create a Butterfly chart in Tableau?

The butterfly chart in tableau is two different bar charts that look like a butterfly. That's why it is called a butterfly chart.

Steps to create the butterfly chart:

Step 1:-

Connect the "Sample-Superstore" data set.

Step 2:-

Drag the "Sub-Category" dimension and drop it onto the "row" shelf.

Step 3:-

Drag the "Sales" measure and drop it onto the "column" shelf.

Learn How to use XLNet for Text Classification

Step 4:-

Now again, drag the "Sales" measure and drop it onto the right side of "sales" in the "row" shelf.

Step 5:-

Right-click on the X-axis of the first chart and select "edit axis" and then click on the "reversed" option.

Step 6:-

Create a calculation field, set the value "0" in it, and drop it between the "column" shelf.

Step 7:-

Go to the "row" shelf and click on the drop-down on the "sub-category" click on "show headers".

Step 8:-

Go to the "marks" card and select the "zero" field placed in between. Drag the "sub-category" and drop it on the "labels" in the "marks" card.

Step 9:-

Click on the drop-down and select "text."

And Our Butterfly Chart is Ready!

What Users are saying..

profile image

Anand Kumpatla

Sr Data Scientist @ Doubleslash Software Solutions Pvt Ltd
linkedin profile url

ProjectPro is a unique platform and helps many people in the industry to solve real-life problems with a step-by-step walkthrough of projects. A platform with some fantastic resources to gain... Read More

Relevant Projects

Personalized Medicine: Redefining Cancer Treatment
In this Personalized Medicine Machine Learning Project you will learn to classify genetic mutations on the basis of medical literature into 9 classes.

CycleGAN Implementation for Image-To-Image Translation
In this GAN Deep Learning Project, you will learn how to build an image to image translation model in PyTorch with Cycle GAN.

Deep Learning Project for Beginners with Source Code Part 1
Learn to implement deep neural networks in Python .

Customer Market Basket Analysis using Apriori and Fpgrowth algorithms
In this data science project, you will learn how to perform market basket analysis with the application of Apriori and FP growth algorithms based on the concept of association rule learning.

House Price Prediction Project using Machine Learning in Python
Use the Zillow Zestimate Dataset to build a machine learning model for house price prediction.

Build an Image Classifier for Plant Species Identification
In this machine learning project, we will use binary leaf images and extracted features, including shape, margin, and texture to accurately identify plant species using different benchmark classification techniques.

AWS Project to Build and Deploy LSTM Model with Sagemaker
In this AWS Sagemaker Project, you will learn to build a LSTM model on Sagemaker for sales forecasting while analyzing the impact of weather conditions on Sales.

Build a Multi Touch Attribution Machine Learning Model in Python
Identifying the ROI on marketing campaigns is an essential KPI for any business. In this ML project, you will learn to build a Multi Touch Attribution Model in Python to identify the ROI of various marketing efforts and their impact on conversions or sales..

Classification Projects on Machine Learning for Beginners - 1
Classification ML Project for Beginners - A Hands-On Approach to Implementing Different Types of Classification Algorithms in Machine Learning for Predictive Modelling

Census Income Data Set Project-Predict Adult Census Income
Use the Adult Income dataset to predict whether income exceeds 50K yr based oncensus data.