How to add total labels on Stacked Bar Chart in Tableau

This recipe helps you add total labels on Stacked Bar Chart in Tableau

Recipe Objective - How to add total labels on Stacked Bar Chart in Tableau?

Step 1:

Connect the "Sample-Superstore" data set in tableau.

Step 2:

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

Step 3:

Drag the "Sales" measure and drop it onto the "Row: shelf.

Step 4:

Drag the "Ship Mode" dimension and drop it onto the "Color" in the "Marks" card.

Step 5:

Drag the "Sales" measure and drop it on the "Label."

Step 6:

Now drag the "Sales" measure again and drop it on the right of "Sales" on the "Row" shelf.

Step 7:

Now select the "SUM(sales)" marks card and remove the "Ship mode" dimension from the "color."

Step 8:

Go to the "Row" shelf and click on the drop-down on the 2nd "sales" measure and click on "dual-axis."

Step 9:

Right-click on the axis of the chart and click on "synchronize axis."

Step 10:

Go to the "All" marks card. Click on the drop-down and select "Bar."

Now The Total Label has Been Added to the Stacked Bar Chart.

What Users are saying..

profile image

Abhinav Agarwal

Graduate Student at Northwestern University
linkedin profile url

I come from Northwestern University, which is ranked 9th in the US. Although the high-quality academics at school taught me all the basics I needed, obtaining practical experience was a challenge.... Read More

Relevant Projects

Digit Recognition using CNN for MNIST Dataset in Python
In this deep learning project, you will build a convolutional neural network using MNIST dataset for handwritten digit recognition.

Mastering A/B Testing: A Practical Guide for Production
In this A/B Testing for Machine Learning Project, you will gain hands-on experience in conducting A/B tests, analyzing statistical significance, and understanding the challenges of building a solution for A/B testing in a production environment.

MLOps Project to Deploy Resume Parser Model on Paperspace
In this MLOps project, you will learn how to deploy a Resume Parser Streamlit Application on Paperspace Private Cloud.

NLP Project to Build a Resume Parser in Python using Spacy
Use the popular Spacy NLP python library for OCR and text classification to build a Resume Parser in Python.

Deploying Machine Learning Models with Flask for Beginners
In this MLOps on GCP project you will learn to deploy a sales forecasting ML Model using Flask.

Predict Churn for a Telecom company using Logistic Regression
Machine Learning Project in R- Predict the customer churn of telecom sector and find out the key drivers that lead to churn. Learn how the logistic regression model using R can be used to identify the customer churn in telecom dataset.

Word2Vec and FastText Word Embedding with Gensim in Python
In this NLP Project, you will learn how to use the popular topic modelling library Gensim for implementing two state-of-the-art word embedding methods Word2Vec and FastText models.

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.

Learn How to Build a Linear Regression Model in PyTorch
In this Machine Learning Project, you will learn how to build a simple linear regression model in PyTorch to predict the number of days subscribed.

Build CI/CD Pipeline for Machine Learning Projects using Jenkins
In this project, you will learn how to create a CI/CD pipeline for a search engine application using Jenkins.