How to Group Categories in Tableau

Cody Schneider••8 min read

Transforming a cluttered chart with dozens of categories into a clean, insightful visual is one of the simplest and most satisfying tricks in Tableau. You can do this by grouping related dimension members together, making your data easier to understand. This article covers several straightforward methods for creating groups in Tableau, from quick visual selections to more flexible calculated fields.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Why Group Categories in Tableau?

Before jumping into the "how," it’s important to understand why grouping is so useful. At its core, grouping simplifies your view and helps you see the bigger picture. Imagine trying to analyze sales performance across all 50 U.S. states on a single bar chart - it would be an unreadable mess. Grouping those states into regions like "Northeast," "West," and "Midwest" instantly clarifies the visualization.

Here are a few key benefits:

  • Simplify Complex Views: Reduce the number of marks (bars, lines, map points) in your visualization to prevent information overload.
  • Summarize Data: Combine smaller, less significant categories into a more impactful whole. For example, grouping your least popular products into an "Other" category.
  • Correct Messy Data: Clean up data entry errors or inconsistencies by merging similar items (e.g., grouping "USA," "U.S.," and "United States" into a single "United States" member).
  • Enable High-Level Analysis: Analyze trends at a broader level. Instead of looking at individual cities, you can analyze performance by sales territory or metropolitan area.

Method 1: Visual Grouping in Your Worksheet

The fastest way to create a group is by directly selecting data points, or "marks," within your chart. This method is intuitive because you’re literally pointing at what you want to combine.

Let's use the Sample - Superstore dataset to create a bar chart showing Sales by Sub-Category. You’ll notice there are 17 different sub-categories, making it a bit busy.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Step-by-Step Instructions:

1. Create the Initial View

Start by building your visualization. For this example, drag the Sub-Category dimension to the Columns shelf and the Sales measure to the Rows shelf. You'll see a bar chart like the one below.

2. Select the Marks to Group

To select multiple bars, hold down the Ctrl key (or Cmd key on a Mac) and click on the bars you want to combine. Let’s group the furniture-related items: 'Bookcases', 'Chairs', 'Furnishings', and 'Tables'.

Alternatively, you can click and drag your cursor over a selection of marks to highlight them all at once.

3. Create the Group

Once your desired marks are selected, a tooltip will appear. Click the group icon (it looks like a paperclip) in the command bar of the tooltip. That’s it! Tableau instantly creates a new group.

You’ll see three things happen:

  • The view updates to show your new group, which combines the sales of the four sub-categories you selected.
  • All the other sub-categories are automatically put into an 'Other' group.
  • A new field appears in the Data pane, titled Sub-Category (group). This is the new dimension Tableau created.

4. Edit and Rename Your Group

The default names Tableau assigns are practical but not very descriptive. To make your chart clearer, you should edit the group.

Right-click the Sub-Category (group) field in the Data pane and select Edit Group.... In the dialog box that appears, you can:

  • Rename groups: Select a group name (like 'Bookcases, Chairs, Furnishings, & Tables') and click 'Rename' to give it a simpler name, such as "Furniture."
  • Add or remove members: Drag dimension members from the left panel into or out of your existing groups on the right.
  • Ungroup items: Select items within a group and click 'Ungroup' to move them back into the main list.

Method 2: Grouping from the Data Pane

The visual grouping method is great for quick analysis, but what if you know you want to group a dimension before you even build a chart? You can create a group directly from the Data pane. This gives you a more controlled, comprehensive view of all the members in your dimension.

Step-by-Step Instructions:

1. Find the Dimension in the Data Pane

On the left side of your Tableau screen, find the dimension you wish to group. Let’s stick with the Sub-Category dimension.

2. Create the Group Field

Right-click on the Sub-Category dimension, then hover over Create and select Group....

This opens the 'Create Group' dialog box, which lists every member of the Sub-Category dimension.

3. Create Your First Group

Select the members you want in your first group. Let's create an "Office Essentials" group. Hold down Ctrl (or Cmd) and click 'Art', 'Envelopes', 'Fasteners', 'Labels', 'Paper', and 'Supplies'.

With those members highlighted, click the Group button. Tableau bundles them together and gives it a default name based on the members you selected.

Now, repeat the process. Select 'Binders', 'Storage', and 'Bookcases', and click Group to create a "Storage & Organization" group. Don’t forget to use the Rename button to give your groups clean, logical names.

This method is great because you can create multiple, distinct groups all at once, whereas the visual method tends to create one group and lump everything else into "Other."

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

4. Bonus Tip: Find Members

If your dimension has hundreds or thousands of members, scrolling through the list is inefficient. Use the Find Members search bar at the top of the dialog box to quickly locate the items you need to group. For example, typing "Appliances" will instantly bring that member into view.

5. Use Your New Grouped Dimension

Click OK to save your work. The new grouped dimension, Sub-Category (group), will appear in your Data pane. You can now drag this field onto your Columns or Rows shelf just like any other dimension to build visualizations.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Method 3: Grouping with a Calculated Field

For ultimate flexibility, you can create groups using a calculated field. This method is a bit more advanced but gives you far more power and dynamic control. Instead of manually picking members, you define the logic, and Tableau does the grouping for you. This is perfect for complex criteria or situations where your underlying data might change.

Suppose you want to group the Sub-Category dimension into three high-level categories: Furniture, Office Supplies, and Technology. You can write a simple IF or CASE statement.

  • To create a calculated field, right-click on an empty space in the Data pane and select Create Calculated Field....
  • Give it a name, like "Product Category Group."
  • Enter a formula.

Here’s an example using a CASE statement, which is often cleaner for these types of conditional logic:

CASE [Sub-Category]
WHEN "Chairs" THEN "Furniture"
WHEN "Tables" THEN "Furniture"
WHEN "Bookcases" THEN "Furniture"
WHEN "Furnishings" THEN "Furniture"
WHEN "Phones" THEN "Technology"
WHEN "Accessories" THEN "Technology"
WHEN "Copiers" THEN "Technology"
WHEN "Machines" THEN "Technology"
WHEN "Binders" THEN "Office Supplies"
WHEN "Paper" THEN "Office Supplies"
ELSE "Office Supplies"
END

This calculation checks the value of each Sub-Category, assigns it to a new group, and labels anything else as "Office Supplies." Now you have a totally new dimension that you can reuse across any worksheet in your workbook. The bonus is that if a new Sub-Category is added, the formula will automatically assign it correctly.

Quick Tips and Best Practices

  • Groups vs. Sets: Don't confuse groups with sets. Groups are for combining multiple dimension members into a single higher-level category. Sets are for creating a subset of your data based on certain conditions, which results in a binary in/out classification.
  • Hierarchies: Grouping is the first step toward building hierarchies. After creating your group (e.g., Region from State), you can create a hierarchy by dragging the original dimension (State) and dropping it on top of your group (Region) in the Data pane. This enables powerful drill-down functionality in your charts.
  • Use "Other": The 'Include Other' option is helpful for capturing everything you didn't explicitly group. Be sure to give it a descriptive name by right-clicking the group and using 'Edit Alias' so it's clear what that slice of your data represents.

Final Thoughts

Mastering grouping in Tableau is a foundational skill that immediately cleans up your dashboards and reveals deeper insights. Whether you use the quick visual paperclip method, the more deliberate Data pane workflow, or the powerful logic of a calculated field, each approach helps turn granular data into an actionable, high-level story.

While mastering tools like Tableau unlocks powerful analytics, the manual effort of structuring data, building charts, and drilling down still takes significant time away from actual decision-making. That's why we built Graphed to remove the friction. Instead of clicking and dragging to group categories, you can just connect your data sources and ask in plain English: "Show me a bar chart of sales grouped by product category from Shopify." Graphed generates a live, interactive dashboard for you in seconds, saving you from the slow, repetitive work of manual report building.

Related Articles