Creating a 100 stacked bar chart in Tableau can be a powerful way to visualize and compare data across multiple categories. This guide will walk you through the process, from data preparation to finalizing your chart.

Before we begin, ensure you have Tableau Desktop installed and that you're familiar with its basic features. We'll be using Tableau version 2020.3 or later for this tutorial.

Data Preparation
To create a 100 stacked bar chart, you'll first need to prepare your data. This typically involves cleaning, transforming, and aggregating your data into a suitable format. For this example, let's assume you have a dataset containing sales data for different products and regions over time.

Your data should be structured with the following fields: Category (e.g., Product or Region), Sub-Category (if applicable), Measure (e.g., Sales), and Date. Ensure your data is sorted by Category, Sub-Category, and Date.
Data Cleaning and Transformation

Before creating your chart, clean your data by removing any duplicates, null values, or outliers that could skew your results. Use Tableau's data cleaning tools to handle this efficiently.
Next, transform your data as needed. For a stacked bar chart, you'll typically want to aggregate your data by Category and Sub-Category. Right-click on the Measure field, select 'Quick Table Calculation', then choose 'Sum'.
Creating Calculated Fields

To create a 100 stacked bar chart, you'll need to calculate the percentage contribution of each sub-category to its parent category. Right-click in an empty space on the Fields pane, select 'Create Calculated Field', and enter the following formula:
SUM([Sales]) / SUM([Total Sales]) * 100
Replace 'Sales' with your measure field name and 'Total Sales' with the total sum of your measure field. This calculation will give you the percentage contribution of each sub-category to its parent category.

Creating the 100 Stacked Bar Chart
Now that your data is prepared, it's time to create your chart.




















Drag and drop your Category field to the Columns shelf, your Sub-Category field to the Rows shelf, and your Measure field to the Text shelf. Your chart should now display as a table.
Stacking the Bars
To stack the bars, right-click on the Measure field on the Text shelf, select 'Dual Axis', then click 'OK'. This will create a second axis for your chart.
Right-click on the second axis, select 'Sync with', then choose the first axis. This will ensure both axes share the same scale. Now, drag your calculated percentage field to the second axis's Text shelf. Your chart should now display as a stacked bar chart.
Formatting the Chart
To make your chart easier to read, format it as follows:
- Right-click on the color legend, select 'Edit Colors', then choose a color palette that suits your data.
- Right-click on the axis, select 'Format', then adjust the number format to display as a percentage (e.g., 0%).
- Right-click on the chart title, select 'Edit Title', then enter a clear and concise title for your chart.
Congratulations! You've now created a 100 stacked bar chart in Tableau. This chart type is particularly useful for comparing the composition of different categories and understanding the relative importance of each sub-category.
Remember, the key to creating effective visualizations is to keep your charts simple and easy to understand. Use color, labels, and titles to guide your audience and help them draw insights from your data.
Now that you've mastered the 100 stacked bar chart, why not explore other chart types in Tableau? The possibilities are endless, and each new chart you create will deepen your understanding of your data and improve your visualization skills.