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

Savvy Sahai

Data Science Intern, Capgemini
linkedin profile url

As a student looking to break into the field of data engineering and data science, one can get really confused as to which path to take. Very few ways to do it are Google, YouTube, etc. I was one of... Read More

Relevant Projects

Build a Customer Churn Prediction Model using Decision Trees
Develop a customer churn prediction model using decision tree machine learning algorithms and data science on streaming service data.

FEAST Feature Store Example for Scaling Machine Learning
FEAST Feature Store Example- Learn to use FEAST Feature Store to manage, store, and discover features for customer churn prediction machine learning project.

OpenCV Project for Beginners to Learn Computer Vision Basics
In this OpenCV project, you will learn computer vision basics and the fundamentals of OpenCV library using Python.

End-to-End Speech Emotion Recognition Project using ANN
Speech Emotion Recognition using RAVDESS Audio Dataset - Build an Artificial Neural Network Model to Classify Audio Data into various Emotions like Sad, Happy, Angry, and Neutral

Langchain Project for Customer Support App in Python
In this LLM Project, you will learn how to enhance customer support interactions through Large Language Models (LLMs), enabling intelligent, context-aware responses. This Langchain project aims to seamlessly integrate LLM technology with databases, PDF knowledge bases, and audio processing agents to create a comprehensive customer support application.

PyTorch Project to Build a GAN Model on MNIST Dataset
In this deep learning project, you will learn how to build a GAN Model on MNIST Dataset for generating new images of handwritten digits.

Loan Eligibility Prediction Project using Machine learning on GCP
Loan Eligibility Prediction Project - Use SQL and Python to build a predictive model on GCP to determine whether an application requesting loan is eligible or not.

OpenCV Project to Master Advanced Computer Vision Concepts
In this OpenCV project, you will learn to implement advanced computer vision concepts and algorithms in OpenCV library using Python.

Abstractive Text Summarization using Transformers-BART Model
Deep Learning Project to implement an Abstractive Text Summarizer using Google's Transformers-BART Model to generate news article headlines.

Build Deep Autoencoders Model for Anomaly Detection in Python
In this deep learning project , you will build and deploy a deep autoencoders model using Flask.