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

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.

Learn to Build an End-to-End Machine Learning Pipeline - Part 2
In this Machine Learning Project, you will learn how to build an end-to-end machine learning pipeline for predicting truck delays, incorporating Hopsworks' feature store and Weights and Biases for model experimentation.

AWS MLOps Project to Deploy a Classification Model [Banking]
In this AWS MLOps project, you will learn how to deploy a classification model using Flask on AWS.

Build Real Estate Price Prediction Model with NLP and FastAPI
In this Real Estate Price Prediction Project, you will learn to build a real estate price prediction machine learning model and deploy it on Heroku using FastAPI Framework.

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.

Build a Review Classification Model using Gated Recurrent Unit
In this Machine Learning project, you will build a classification model in python to classify the reviews of an app on a scale of 1 to 5 using Gated Recurrent Unit.

Build a Similar Images Finder with Python, Keras, and Tensorflow
Build your own image similarity application using Python to search and find images of products that are similar to any given product. You will implement the K-Nearest Neighbor algorithm to find products with maximum similarity.

Time Series Forecasting Project-Building ARIMA Model in Python
Build a time series ARIMA model in Python to forecast the use of arrival rate density to support staffing decisions at call centres.

Build a Text Classification Model with Attention Mechanism NLP
In this NLP Project, you will learn to build a multi class text classification model with attention mechanism.

Azure Text Analytics for Medical Search Engine Deployment
Microsoft Azure Project - Use Azure text analytics cognitive service to deploy a machine learning model into Azure Databricks