Groups, Sets & Hierarchies
Groups — Bundling Members into Custom Categories
A Group in Tableau is a way to combine multiple dimension members into a higher-level category. Think of it as creating a custom segment that doesn't exist in your original data. Groups create a new dimension field — they don't modify your underlying data source.
The classic use case: your data has 50 US states, but your business cares about sales regions (Northeast, South, Midwest, West). You don't have a Region field — you create a Group to define it manually.
IF [State] = "New York" OR [State] = "Massachusetts" THEN "Northeast"...). But Groups are faster to build and visually manage. Use Groups for ad-hoc segmentation, Calculated Fields when you need the logic reusable in formulas.Method 1 — Manual Grouping via the Data Pane
State). Select Create → Group. A dialog opens showing all members.State (group). Drag it into your view just like any other dimension. The paperclip icon (📎) identifies group fields.Method 2 — Visual Grouping in the View
You can also create groups directly from a chart. Select multiple marks (bars, circles, etc.) in the view using Ctrl+click, then click the paperclip icon that appears in the tooltip. Tableau creates the group instantly. This is the fastest workflow when you can visually identify the members you want to bundle.
Editing Groups
In the Data pane, right-click your group field and select Edit Group. The same dialog reopens — add members to existing groups, rename groups, split groups apart, or delete groups entirely. Any views using the group field update automatically.
Sets — Dynamic In/Out Segmentation
A Set is a custom binary field that categorizes dimension members as either In (meets the condition) or Out (does not). Sets are more powerful than Groups because they can be dynamic — they update automatically as your data changes, and they can respond to user interaction via Set Actions.
Creating a Condition-Based Set
Customer Name. Select Create → Set. The Set dialog opens.High Value Customers. Clear names make your workbook easier to maintain.Sales, operator >=, value 5000. All customers with total sales ≥ $5,000 are "In".Top N Set Example
Create a set on Product Name. In the Set dialog, choose the Top tab. Select "By field" → Top 10 → by Sales → SUM. Now you have a set that always contains your top 10 products by revenue — even when the data is filtered or updated. Drag this to Color to highlight top performers vs. the rest in any chart.
Combined Sets
Create two sets first: Top 10 by Sales and Top 10 by Profit. Then right-click either set in the Data pane → Create Combined Set. You can choose:
| Operation | Result | Use Case |
|---|---|---|
| All Members in Both Sets | Intersection (AND) | Products that are both top sales AND top profit — your gold tier |
| All Members in Either Set | Union (OR) | Products in top sales OR top profit — worth watching |
| Except Members in Set 2 | Difference | Top sales products that are NOT top profit — margin problems |
Set Actions — User-Driven Dynamic Filtering
Set Actions are the feature that turns sets from a static analysis tool into an interactive dashboard powerhouse. A Set Action lets users click, hover over, or select marks in one chart to dynamically control the membership of a set — which then drives other charts that use that set.
This creates a pattern more flexible than standard filter actions. Unlike filter actions (which simply show/hide rows), Set Actions let you change how data is calculated — you can show comparisons between selected and non-selected items simultaneously.
Setting Up a Set Action
Region → Create Set → select any single member manually. Name it Selected Region. This will be the "target" set the action writes to.Selected Region in its color or computed axis (e.g., a calculated field: IF [Selected Region] THEN [Sales] END).Selected Region. Run action on: Select. Clearing selection: Keep set values.Custom Hierarchies — Drill-Down Navigation
A Hierarchy in Tableau is an ordered group of related dimensions where you can drill down (expand to more detail) or drill up (collapse to summary). Tableau automatically creates date hierarchies (Year → Quarter → Month → Week → Day), but you can create custom hierarchies for any related dimensions.
Order Date to Columns. Tableau places YEAR(Order Date) automatically. Click the + icon on the pill to expand to QUARTER, then MONTH. Click the - icon to collapse back. This drill-down interaction is a hierarchy in action.Creating a Custom Geographic Hierarchy
Country, State, City, Postal Code. These naturally nest: Country → State → City → Postal Code.State and drop it directly onto Country. Tableau creates a hierarchy and prompts you to name it. Call it "Location". Then drag City onto State within the hierarchy, then Postal Code onto City.Country from the hierarchy to Rows. Click the + icon on the pill to drill into State, then City. Each level adds a column in the table or splits the chart further.Product Hierarchy Example
For retail data: Category → Sub-Category → Product Name. Create this hierarchy from the Data pane by dragging Sub-Category onto Category, then Product Name onto Sub-Category. In a sales chart, start at Category level. Click + to see sub-categories. Click + again to see individual products. Click - to roll back up. This replaces the need for multiple separate charts at each level.
Project: Regional Sales Explorer
Let's combine everything — groups, sets, set actions, and hierarchies — into a single interactive Regional Sales Explorer dashboard using the Sample - Superstore dataset.
Region → Create Set → manually select "East". Name it Selected Region. This is the set that the Set Action will write to.State (Tableau auto-builds a map). Drag Sales to Color. Drag Region to Detail. Name this sheet "Regional Map".Selected Region (the set) to Rows. Drag Sales to Columns. You'll see "In" and "Out" bars. Add Selected Region to Color too — "In" glows orange, "Out" is muted. Name it "Region Comparison".Category to Rows, Sales to Columns. Add a filter for Selected Region = In. Name it "Product Drill-Down".Selected Region. Run on: Select. Clearing: Keep set values. Click OK.+ on the Category pill to drill to Sub-Category.What You Learned
✅ Visual grouping lets you select marks on-canvas and group them directly
✅ Sets create binary In/Out membership — condition-based, Top N, or manual
✅ Combined Sets apply union, intersection, and difference logic across two sets
✅ Set Actions let users dynamically control set membership by clicking on marks
✅ Set Actions enable "focus + context" comparisons impossible with filter actions
✅ Custom hierarchies enable drill-down from any parent dimension to child levels
✅ Built a Regional Sales Explorer using all three features together