How to Show Column Totals in Tableau

Cody Schneider9 min read

Adding totals to your columns in Tableau seems like it should be a simple one-click task, and often, it is. But when it doesn't work as expected, finding a solution can be surprisingly tricky. This guide will walk you through everything from the basic one-click method for showing column totals to advanced techniques for handling complex calculations and custom layouts.

The Easy Way: Using Tableau’s Built-in “Totals” Feature

For most simple tables, Tableau has a straightforward, built-in feature to add totals. If your data is structured cleanly and you're using basic aggregations like SUM, AVG, or COUNT, this method will likely be all you need.

How to Add Column Grand Totals

Let’s say you’ve built a simple view showing Sales by Region and Category. Now, you want to see the total sales for each category across all regions. It's a matter of a few clicks.

  1. Build your initial table. For example, drag Region to the Columns shelf and Category to the Rows shelf. Then, place Sales on Text in the Marks card.
  2. Navigate to the top menu and click on Analysis.
  3. Hover over Totals. A dropdown menu with several options will appear.
  4. Select Show Column Grand Totals.

And that’s it. A new column labeled "Grand Total" will appear on the right side of your table, showing the sum of sales for each category across all regions. You can just as easily add Show Row Grand Totals to get a total row at the bottom of your view.

Customizing Default Totals

Tableau defaults to showing grand totals as a SUM, but that might not always be what you need. What if you wanted to see the average sale per category instead of the sum? You can easily change this.

  • Go back to Analysis > Totals.
  • This time, select Total All Using (Automatic).
  • From the pop-out menu, you can choose a different aggregation, such as Average, Minimum, or Maximum.

This changes the calculation that Tableau uses specifically for the grand total line, without affecting the individual cells in your table. This is incredibly useful for providing a different level of summary without building complex calculations.

When Basic Totals Don’t Work: Troubleshooting and Advanced Solutions

Sooner or later, you’ll encounter a situation where the simple Show Column Grand Totals feature doesn’t deliver. This often happens when you use more advanced features like table calculations, data blending, or specific filter configurations. You might see incorrect numbers, missing totals, or just blank spaces where you expect a total to be.

Here’s how to tackle some of the most common issues.

Problem 1: Totals with Table Calculations are Incorrect

Table calculations like Percent of Total, Running Total, or calculations using functions like LOOKUP() or SIZE() operate on the visible data within the view. Tableau calculates grand totals separately - essentially after the main table is calculated. This "two-pass" system means your table calculation's logic may not apply correctly to the grand total, which often leads to totals that don't make sense.

For example, if you have a column showing Percent of Total Sales for each region, simply summing up those percentages in the Grand Total column won't add up to 100%. Tableau knows this, and often defaults to calculating the percentage for the Grand Total value itself - which is always 100%.

Solution: Create a Custom Total with a Calculated Field

You can tell Tableau exactly how to calculate the regular cells vs. the grand total row/column by using a calculated field. The magic here is the SIZE() function, which counts the number of marks in a partition. In a Grand Total partition, the size is typically 1.

Let's create a custom profit ratio that handles totals correctly.

  1. Create a calculated field. Name it something like "Profit Ratio with Custom Total."
  2. Use the following formula:
IF SIZE() = 1 THEN
    SUM([Profit]) / SUM([Sales])
ELSE
    SUM([Profit]) / SUM([Sales])
END
  1. At first glance, this calculation looks redundant - it’s doing the same thing in both the IF and ELSE parts. However, creating this structure gives you complete control. For example, if you wanted the grand total to calculate something different, you could change the logic in the IF SIZE() = 1 part.
  2. Place this new calculation on your view.
  3. Right-click the calculation's pill and select Compute Using and choose Table (Across) or Table (Down) depending on your layout. This ensures SIZE() is evaluated correctly.

Using this template allows you to explicitly define the logic for both the detailed rows and the total rows, overcoming Tableau’s default behavior for table calculations.

Problem 2: Totals Don’t Appear with Blended Data

If you're using data blending to combine information from two different data sources, grand totals can sometimes fall apart. You might see an asterisk (*) in the totals column. An asterisk in Tableau signifies that there are multiple possible values for a single mark, and Tableau doesn't know which one to display. This often happens in blended data when the level of granularity between your primary and secondary data sources doesn't perfectly align for the totals.

Common Solutions:

  • Check Your Linking Fields: Make sure the small chain link icon is active next to the correct shared dimensions in the Data pane for both the primary and secondary sources.
  • Align Granularity: The issue often stems from the total line not having the same level of detail as the rest of the table. You might need to add one of your linking fields to the Detail shelf in the Marks card to give the totals calculation the context it needs.
  • Try Switching Primary/Secondary Sources: Sometimes, flipping the primary data source can resolve the issue, though this might impact filters and other calculations, so proceed with care.

Problem 3: You Just Want the Totals, Not the Whole Table

Sometimes you need to create a condensed summary or a "Key Metrics" card on a dashboard. You don’t want a detailed table, you just want a single column or row showing grand totals.

Solution: Turn Off “Aggregate Measures.”

  1. Create your base view with a Measure (e.g., Sales) and a Dimension (e.g., Region).
  2. Go to the Analysis menu from the top navigation bar.
  3. Uncheck Aggregate Measures. You’ll now see your table de-aggregated, showing a mark for every single row in your data source.
  4. Now, go back to Analysis > Totals and add your column or row totals.
  5. To hide the detailed (now de-aggregated) marks, you can either filter the view or adjust the table structure until only the total is prominent. You could hide the "Region" headers, for example, leaving only the grand total row or column.

The Ultimate Workaround: Creating Totals with Separate Worksheets

What if you want ultimate control? For example, showing totals for only some columns in your table? Let's say you have Sales, Profit, and Discount, but you only want to total the Sales and Profit columns - the sum of discounts is a meaningless metric anyway.

Tableau’s default totals are all-or-nothing. To get around this, you'll need to use one of the most powerful tricks in the Tableau toolkit: combining separate worksheets on a dashboard.

Step 1: Create the Main Data Sheet (Without Totals)

  1. Create a new worksheet.
  2. Build your detailed table. For instance, put Sub-Category on the Rows shelf.
  3. Put Measure Names on the Columns shelf and Measure Values on Text. Add the measures you want to display, like Sales, Profit, and Discount.
  4. Make sure that under Analysis > Totals, all grand totals are turned off.
  5. Name this sheet something descriptive, like "Sales Details."

Step 2: Create the Custom Totals Sheet

  1. Duplicate the "Sales Details" sheet. Rename it "Custom Totals."
  2. In this new sheet, remove Sub-Category from the Rows shelf. Your table will collapse into a single row showing the overall totals for all measures.
  3. Here's the trick: We will now selectively hide the total for the "Discount" column. Right-click the "Discount" column header and select Exclude. Now the only column totals you will see on this sheet are "Sales" and "Profit."
  4. You may want to optionally add a blank column to align to Sub-Category column on your main table in the next step.
  5. To enforce an alignment with your "Sales Details" worksheet later, you can create a placeholder field.

Step 3: Combine Sheets on a Dashboard

  1. Create a new dashboard.
  2. Add a Vertical Layout Container from the Objects pane on the left.
  3. Drag the "Sales Details" worksheet into the container for the headers to appear on columns to align with totals. Then remove it. You should leave the column containers once the worksheet is removed.
  4. Drag the "Sales Details" worksheet into your view on your dashboard. Now drag the "Custom Totals" worksheet into the view so that it aligns and sits just at the bottom of the detailed worksheet.
  5. To make it look seamless, do some formatting cleanup:

This method requires more setup, but it grants you precise control over exactly what appears in your totals, which is essential for building professional, easy-to-read reports and dashboards.

Final Thoughts

Adding totals in Tableau can range from incredibly simple to a complex dance of calculations and containers. While the one-click method solves many use cases, knowing how to approach tricky situations with calculated fields or dashboard composition is what separates a good analyst from a great one. The key is to understand that Tableau generates totals in a separate pass, and using that logic to your advantage is the path to solving even the most difficult totals-related challenges.

If juggling separate worksheets, custom formulas, and dashboard containers just to show a column total seems like a lot of work, it is. We created Graphed because we’ve spent years tackling issues like this and believe data analysis shouldn't require workarounds. By connecting all your marketing and sales data sources in one place, you can build dashboards and reports by simply describing what you want to see - "show me my total sales and profit by sub-category" - and have everything, including accurate totals, created automatically in seconds.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.