How to Create a Stacked Bar Chart with Two Measures in Tableau

Mississauga Jul 01, 2026

Creating a stacked bar chart with two measures in Tableau is a powerful way to compare and contrast data. This visualization allows you to see the composition of your data and how different measures contribute to the whole. Here's a step-by-step guide to help you create this chart.

How to Create a Stacked Bar Chart Using Multiple Measures in Tableau
How to Create a Stacked Bar Chart Using Multiple Measures in Tableau

Before we dive in, ensure you have your data source connected to Tableau and that you're familiar with the basics of the software. Let's get started!

the most popular social media platforms
the most popular social media platforms

Preparing Your Data

To create a stacked bar chart with two measures, you'll need to have your data structured in a specific way. You should have one dimension (e.g., category, time, geography) and two measures (e.g., sales, profit, quantity).

thermometers are labeled in different colors and sizes
thermometers are labeled in different colors and sizes

For example, your data might look like this:

CategorySalesProfit
Electronics50001000
Clothing3000500
Books2000300
Stacked Bar Chart Maker – 120+ stunning chart types
Stacked Bar Chart Maker – 120+ stunning chart types

Creating the Data Source

In Tableau, drag and drop your data source onto the canvas. Ensure that your dimension and measures are correctly identified. If not, right-click on the field and select 'Convert to Dimension' or 'Convert to Measure' as needed.

For our example, 'Category' should be a dimension, and 'Sales' and 'Profit' should be measures.

Stacked Bar Chart Template for Organic vs Paid Traffic | Moqups
Stacked Bar Chart Template for Organic vs Paid Traffic | Moqups

Creating the Stacked Bar Chart

Now that your data is ready, let's create the stacked bar chart.

1. Drag your dimension (e.g., 'Category') to the Columns shelf. This will create bars for each category.

Bar Chart
Bar Chart

2. Drag your first measure (e.g., 'Sales') to the Rows shelf. This will create a bar for each category, with the length representing the sales value.

3. To create the stack, drag your second measure (e.g., 'Profit') to the Color shelf. This will create a second bar within each category bar, representing the profit value.

100% Stacked Bar Chart | MyExcelOnline
100% Stacked Bar Chart | MyExcelOnline
Data Visualization Tips: Bar Charts
Data Visualization Tips: Bar Charts
a bar chart that shows the number of traffic channels in each country, as well as percentage
a bar chart that shows the number of traffic channels in each country, as well as percentage
Stacked Bar Chart Marketing Stats Template | Marketing Analytics Dashboard | Data Visualization Spreadsheet | Excel & Google Sheets |
Stacked Bar Chart Marketing Stats Template | Marketing Analytics Dashboard | Data Visualization Spreadsheet | Excel & Google Sheets |
What is an Example of a Bar Chart?
What is an Example of a Bar Chart?
an info sheet with green and white graphics on it, including graphs, pie chart, bar chart, and other items
an info sheet with green and white graphics on it, including graphs, pie chart, bar chart, and other items
Multiple Stacked Bar Chart Template | Data Visualization Spreadsheet | Comparison Dashboard Chart | Excel & Google Sheets |
Multiple Stacked Bar Chart Template | Data Visualization Spreadsheet | Comparison Dashboard Chart | Excel & Google Sheets |
a bar graph showing the number of customers and how they are buying for their business
a bar graph showing the number of customers and how they are buying for their business
Chart Gallery
Chart Gallery
Bar Charts by Slidequest | Creative Market
Bar Charts by Slidequest | Creative Market
Divided Bar Diagrams
Divided Bar Diagrams
How to Create a Radial Bar Chart in Excel - Easy Steps
How to Create a Radial Bar Chart in Excel - Easy Steps
Cómo hacer un gráfico de barras en Excel
Cómo hacer un gráfico de barras en Excel
How to Create an Editable Bar Chart in Adobe Illustrator | Envato Tuts+
How to Create an Editable Bar Chart in Adobe Illustrator | Envato Tuts+
the chart shows how customers use their platforms
the chart shows how customers use their platforms
an excel triangle bar chart with the title's image above it and below it
an excel triangle bar chart with the title's image above it and below it
Column Chart in Excel to Compare Categories | Bar vs Column
Column Chart in Excel to Compare Categories | Bar vs Column
Create a Column Chart to Display Variance with Different Colors
Create a Column Chart to Display Variance with Different Colors
Salesforce Help
Salesforce Help
a bar chart showing the number of people in each country
a bar chart showing the number of people in each country

Customizing Your Chart

Your basic stacked bar chart is now created. However, Tableau offers many customization options to make your chart more informative and visually appealing.

Here are some customization ideas:

Sorting and Filtering

You can sort your bars by size by right-clicking on the dimension on the Columns shelf and selecting 'Sort'. You can also add filters to limit the data shown in your chart.

For example, you might want to sort your categories by sales in descending order and filter out categories with low sales.

Adding Labels

To add labels to your bars, right-click on the measure on the Rows shelf and select 'Label'. You can choose to show the value, percentage, or both. You can also adjust the label font, size, and color.

For a cleaner look, you might want to show only the percentage labels and hide the value labels.

Changing the Color Scheme

To change the color scheme of your stacked bars, right-click on the measure on the Color shelf and select 'Edit Colors'. Here, you can choose from various color palettes or create your own.

You can also adjust the opacity of your colors to create a semi-transparent effect, making it easier to see the composition of your bars.

There you have it! You've created a stacked bar chart with two measures in Tableau. Now you can explore your data, create insightful visualizations, and make data-driven decisions. Happy data visualizing!