Skip to content Skip to sidebar Skip to footer

Show Total In Stacked Bar Chart Power Bi

Stacked Bar Chart Power Bi

Power BI is a business analytics service that provides interactive visualizations and business intelligence capabilities with an interface simple enough for end users to create their own reports and dashboards. One of the most popular types of visualizations in Power BI is the stacked bar chart, which shows how much of one variable is made up of different sub-categories of another variable. In this article, we will show you how to add the total of each stacked bar chart in Power BI.

Step 1: Create a Stacked Bar Chart

Create A Stacked Bar Chart Power Bi

The first step is to create a stacked bar chart in Power BI. To do this:

  1. Select the data you want to use in your chart
  2. Click on the "Stacked bar chart" visualization icon in the Visualizations pane
  3. Drag and drop the fields you want to use for the Axis and Legend onto the appropriate fields in the Visualizations pane

Once you have created your stacked bar chart, you should see something like this:

Stacked Bar Chart Power Bi

Step 2: Add Data Labels to the Chart

Data Labels Power Bi

The next step is to add data labels to the chart. To do this:

  1. Select the chart
  2. Click on the "Data labels" button in the Visualizations pane
  3. Select "Show" from the "Category labels" dropdown menu

Your chart should now look something like this:

Stacked Bar Chart With Data Labels Power Bi

Step 3: Add a Total Column to Your Data

Add A Total Column To Your Data Power Bi

The next step is to add a total column to your data. To do this:

  1. Select the data you used to create your chart
  2. Click on the "Add column" button in the Fields pane
  3. Enter a name for your total column, such as "Total Sales"
  4. Enter the formula to calculate the total, such as "Total Sales = [Sales 1] + [Sales 2] + [Sales 3]"
  5. Click "OK"

Your data should now have a new column that shows the total for each row:

Data With Total Column Power Bi

Step 4: Add the Total to Your Chart

Add The Total To Your Chart Power Bi

The final step is to add the total to your chart. To do this:

  1. Select the chart
  2. Click on the "Data labels" button in the Visualizations pane
  3. Select "Show" from the "Value labels" dropdown menu
  4. Select "Total Sales" from the "Value" dropdown menu

Your chart should now show the total for each stacked bar:

Stacked Bar Chart With Total Power Bi

Conclusion

Adding the total to a stacked bar chart in Power BI is a simple process that can provide valuable insights into your data. By following the steps outlined above, you can easily create a stacked bar chart with the total for each category displayed prominently. This can help you identify trends and patterns in your data that might not be immediately apparent without the total. So, go ahead and create your own stacked bar chart with the total in Power BI today!

Related video of Show Total in Stacked Bar Chart Power BI