Tableau Bar Chart Side By Side Instead Of Stacked
Tableau is a powerful data visualization tool that helps businesses and organizations make sense of their data. One of the most commonly used chart types in Tableau is the bar chart, which is used to display and compare values across different categories.
By default, Tableau bar charts are stacked, meaning that the bars for each category are stacked on top of each other. While this may be useful in some cases, it can also make it difficult to compare the values for each category. In this article, we will show you how to create a side-by-side bar chart in Tableau instead of a stacked bar chart.
Step 1: Create a Stacked Bar Chart
The first step in creating a side-by-side bar chart in Tableau is to create a stacked bar chart. To do this, simply drag the dimension you want to use for your categories to the Columns shelf and the measure you want to use for your values to the Rows shelf. Tableau will automatically create a stacked bar chart for you.
Step 2: Duplicate the Measure
Next, you will need to duplicate the measure you just added to the Rows shelf. To do this, right-click on the measure and select "Duplicate". This will create a second copy of the measure on the Rows shelf.
Step 3: Change the Second Measure to a Dual Axis
Once you have duplicated the measure, you will need to change the second measure to a dual axis. To do this, right-click on the second measure and select "Dual Axis". This will create a second set of bars that are side-by-side with the original set of bars.
Step 4: Synchronize the Axes
Now that you have two sets of bars, you will need to synchronize the axes so that they are using the same scale. To do this, right-click on one of the axis and select "Synchronize Axis". This will ensure that the bars are all using the same scale.
Step 5: Adjust the Bar Width
Finally, you may need to adjust the width of the bars to make them easier to read. To do this, simply click on one of the bars and then drag the slider bar to adjust the width of the bars.
Conclusion
By following these simple steps, you can create a side-by-side bar chart in Tableau instead of a stacked bar chart. This will make it easier to compare values across different categories and help you make better data-driven decisions for your business or organization.