How to Add Grand Total to Stacked Column Pivot Chart

If you are looking for some special tricks to know how to add grand total to a pivot chart stacked column in Excel, you’ve come to the right place. There is one way to add grand total to a pivot chart stacked column in Excel. This article will discuss every step of this method to add the grand total to a pivot chart stacked column. Let’s follow the complete guide to learn all of this.


How to Add Grand Total to Stacked Column Pivot Chart in Excel: Step-by-Step Procedures

In the following section, we will use one effective and tricky method to add the grand total to a pivot chart stacked column in Excel. As a first step, we create a pivot table for our dataset, then create a stacked column chart, and finally, display the grand total. This section provides extensive details on this method. You should learn and apply these to improve your thinking capability and Excel knowledge. We use the Microsoft Office 365 version here, but you can utilize any other version according to your preference.


Step 1: Input Basic Particular

Here, we are going to demonstrate how to add the grand total to a pivot chart stacked column in Excel. Our Excel dataset will be introduced to give you a better idea of what we’re trying to accomplish in this article. The following dataset represents the quarterly sales for three regions of a company.

Input basic Particular to Add Grand Total to Stacked Column Pivot Chart


Step 2: Insert Stacked Column Pivot Chart

In this step, we are going to insert a stacked column pivot chart. To do this, first, we have to insert a pivot table. After that, we will insert a stacked column pivot chart. Let’s walk through the following steps to insert a stacked column pivot chart.

  • First of all, select any cell from the data range.
  • Then, go to the Insert tab and select Pivot Table.
  • Now, select From Table/Range from the drop-down list.

Insert Stacked column pivot chart to Add Grand Total

  • Soon after, a dialog box will appear like the following image. Excel will automatically select the data for you. For the new pivot table, the default location will be a New Worksheet.
  • Next, click on OK.

  • After a while, a new worksheet will open up with PivotTable Fields.
  • Next, mark the quarters and Region options as shown below.

getting the pivot table

  • Soon you will see that a Pivot Table has been created as in the image below.

  • Now, we are going to insert a stacked column chart for the pivot table.
  • First of all, select any cell from the pivot table.
  • Now, in the Insert tab, click on the drop-down arrow of the Insert Column or Bar Chart from the Charts group.
  • Then, choose the Stacked Column Chart.

insert stacked column chart

  • The Stacked Column Pivot Chart is shown below. In each column, there is a sum for each quarter displayed in different colors. This graphical representation makes it easy to understand the difference between the sums of quarters at a glance.

  • Now, we are going to add graph elements. In Quick Elements, some elements are already added or removed. But you can manually edit the graph to add or remove any elements from the chart by using the Add Chart Element option.
  • After clicking on the Add Chart Element, you will see a list of elements.
  • Next, you have to click on them one by one to add, remove, or edit them.
  • Alternatively, you can find the list of chart elements by clicking the Plus (+) button from the right corner of the chart as shown below.
  • Here, you have to mark the elements to add or unmark the elements to remove.
  • You will find an arrow on the element, where you will find other options to edit the element.

add chart element

Read More: How to Insert a Stacked Column Pivot Chart in Excel


Step 3: Evaluate Grand Total

In this step, we will evaluate the grand total to be added in a stacked column pivot chart.  Here, we will use the TEXT function. To do this, follow the following process.

  • First of all, to calculate the Grand Total, we have to type the following formula.

="Grand Total :" & TEXT(GETPIVOTDATA("Sum of Q2",$A$3)+GETPIVOTDATA("Sum of Q1",$A$3)+GETPIVOTDATA("Sum of Q3",$A$3)+GETPIVOTDATA("Sum of Q4",$A$3),"$#,###")

  • Then, press Enter.
  • Consequently, you will get the following Grand Total for every region.

evaluate grand total to add in stacked column pivot chart

🔎 How Does the Formula Work?

  • GETPIVOTDATA(“Sum of Q2”,$A$3)+GETPIVOTDATA(“Sum of Q1”,$A$3)+GETPIVOTDATA(“Sum of Q3”,$A$3)+GETPIVOTDATA(“Sum of Q4”,$A$3)

From the pivot table, this formula will get the grand total of the quarter data and sum those quarters to get the value of 389,000.

  • “Grand Total :” & TEXT(GETPIVOTDATA(“Sum of Q2”,$A$3)+GETPIVOTDATA(“Sum of Q1”,$A$3)+GETPIVOTDATA(“Sum of Q3”,$A$3)+GETPIVOTDATA(“Sum of Q4″,$A$3),”$#,###”)

In this formula, the TEXT  function converts a value to a specified number format, and the format is “$#,###” which indicates the currency format in the dollar. Then, the Ampersand operator joins the string of text and returns the output as Grand Total: $389,000.


Step 4: Add Grand Total to Stacked Column Pivot Chart

Now, we are going to show how to add the grand total to the stacked column pivot chart. Let’s walk through the following steps to add the grand total to the stacked column pivot chart.

  • First of all, select the chart.
  • Then, go to the Format tab and select Text Box from the Insert Shapes.

Add Grand Total to Stacked Column Pivot Chart

  • After selecting Text Box, draw it on the chart as shown below. Type the following into the text box.

=Sheet4!$G$3

  • Finally, you will be able to add the grand total to the stacked column pivot chart as shown below.

showing grand total in stacked column pivot chart

  • Next, to modify the chart style, select Design and then select your desired Style 8 option from the Chart Styles group.
  • Or you can right-click on the chart, select the Chart Styles icon, and select your desired style as shown below.

  • Therefore, you will get the following chart.

show the final chart

  • Now, are going to add a slicer for customization purposes.
  • To do this, go to the PivotTableAnalyze and select Insert Slicer.

insert slicer in chart

  • When the Insert Slicers dialog box appears, check the Region section.

  • Therefore, you will get the following output.
  • Now, we will easily customize our chart based on a slicer for our visualization analysis.

add grand total in stacked column pivot chart with slicer

  • Below is an example of the Grand Total amount we will receive if we select the Canada region.

Read More: How to Add Target Line to Pivot Chart in Excel


💬 Things to Remember

✎ Select anywhere in the pivot table before inserting a stacked column graph. Otherwise, rows and columns will need to be manually added.

✎ By default, the pivot table will always sort the information in alphabetically ascending order. In order to reorder the information, you must use the sort option.

✎ Whenever you are creating a pivot table, choose New Worksheet. A pivot table containing the data will be created in your existing sheet if you choose Existing Worksheet. created in your existing sheet that contains the If we create the pivot table in our current worksheet, there is a significant chance that the data will be distorted.


Download Practice Workbook

Download this practice workbook to exercise while you are reading this article. It contains all the datasets in different spreadsheets for a clear understanding. Try it yourself while you go through the step-by-step process.


Conclusion

That’s the end of today’s session. I strongly believe that from now you may be able to add grand total to a pivot chart stacked column in Excel. If you have any queries or recommendations, please share them in the comments section below.

Don’t forget to check our website for various Excel-related problems and solutions. Keep learning new methods and keep growing!


Related Articles


<< Go Back to Pivot Chart | Pivot Table in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!

Tags:

Saquib Ahmad Shuvo
Saquib Ahmad Shuvo

Saquib Ahmad Bhuiyan, holding a BSc degree in Naval Architecture & Marine Engineering from Bangladesh University of Engineering and Technology, skillfully integrates engineering expertise with a passion for Excel. He provides solutions to complex issues as an Excel & VBA Content Developer for ExcelDemy Forum. He demonstrates an enthusiastic mindset and adeptness in managing critical situations with finesse, showcasing his commitment to excellence. Apart from creating Excel tutorials, he is interested in Data Analysis with MS Excel, Rhinoceros,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo