Skip to content Skip to sidebar Skip to footer

Tableau Stacked Bar Chart Show Total On Top

Tableau Stacked Bar Chart Show Total On Top

Tableau is a powerful data visualization tool that is widely used by businesses and organizations to make sense of their data. One of the most commonly used chart types in Tableau is the stacked bar chart. Stacked bar charts are a great way to show the composition of a whole, broken down by different categories or sub-groups.

However, sometimes it can be useful to show the total value of the stacked bar chart on top of the chart. This can provide a quick and easy way to see the overall value of the data without having to add up each individual bar.

Creating a Stacked Bar Chart in Tableau

Creating A Stacked Bar Chart In Tableau

To create a stacked bar chart in Tableau, you first need to have your data in a format that is suitable for this type of chart. Your data should be broken down into different categories or sub-groups, and each category should have a value associated with it.

Once you have your data in the correct format, you can create a stacked bar chart by following these steps:

  1. Open Tableau and connect to your data source
  2. Drag and drop the dimension you want to use for the x-axis onto the Columns shelf
  3. Drag and drop the measure you want to use for the y-axis onto the Rows shelf
  4. Drag and drop the dimension you want to use for the color encoding onto the Color shelf
  5. Drag and drop any additional dimensions you want to use for the detail encoding onto the Detail shelf
  6. Click on the Show Me icon in the top right corner of the screen
  7. Select the Stacked Bar chart type
  8. Your stacked bar chart should now be displayed

Now that you have created your stacked bar chart, you can customize it to show the total value on top of the chart.

Show Total on Top of Stacked Bar Chart

Show Total On Top Of Stacked Bar Chart

To show the total value on top of the stacked bar chart, you can follow these steps:

  1. Drag and drop the measure you want to use for the total value onto the Label shelf
  2. Click on the Label shelf and select "Label Options"
  3. Under "Marks to Label", select "All"
  4. Under "Label", select "Automatic"
  5. Under "Position", select "Inside End"
  6. Under "Text", select "Total"
  7. Your stacked bar chart should now display the total value on top of each bar

This will display the total value for each category on top of the corresponding bar in the stacked bar chart.

Customizing the Total Label

Customizing The Total Label

If you want to customize the label that displays the total value on top of the stacked bar chart, you can follow these steps:

  1. Click on the Label shelf and select "Label Options"
  2. Under "Marks to Label", select "All"
  3. Under "Label", select "Custom"
  4. Enter the text you want to display for the total value in the "Custom Label" field
  5. You can also customize the font, color, and size of the label using the available options
  6. Your stacked bar chart should now display the customized total value label on top of each bar

By customizing the label, you can make the total value more meaningful and informative to your audience.

Conclusion

Conclusion

Showing the total value on top of a stacked bar chart in Tableau can provide a useful way to quickly see the overall value of the data. By following the steps outlined in this article, you can easily add this feature to your chart and customize it to suit your needs.

Related video of Tableau Stacked Bar Chart Show Total On Top