Groups in Tableau: Create Groups, Hierarchy, Sets

โšก Smart Summary

Tableau sort data controls the order marks appear in a view, while groups, hierarchies, and sets reshape the dimensions behind them. This page covers every sorting method and each of the three field-shaping features, with the exact dialog steps.

  • โ†•๏ธ Sort Methods: Data source order, alphabetic, field, and manual cover every ordering requirement in a worksheet.
  • โšก Quick Sort: The toolbar icons apply an instant ascending or descending sort on the measure already in the view.
  • ๐Ÿ—‚๏ธ Groups: Combining members creates a new dimension suffixed with (group), leaving the original field untouched.
  • ๐Ÿชœ Hierarchies: Nesting related dimensions adds drill-down arrows so a view moves from country to city in one click.
  • ๐ŸŽฏ Sets: A set holds a chosen subset of members and behaves as a separate In/Out dimension.
  • โš–๏ธ Choosing Between Them: Groups relabel, hierarchies nest, and sets flag membership, so the goal decides which feature applies.

Groups in Tableau

Sort Data in Tableau

Data present in the visualization and worksheet can be sort based on the requirement. It can sort the data based on data source order, ascending, descending or depend on any measured value.

The procedure for sorting is given as follows.

Step 1) Go to a Worksheet and drag a dimension and measure as given in the image.

Sort Data

It creates a bar chart by default. Category Present in the visual is sorted based on data source order by default. We can change the sort order by following the below procedure.

Step 2)

  1. Right click on Category.
  2. Select ‘Sort’ option.

Sort Data

It opens the Sort window. The options present inside the sort window is explained as follows.

Sort Data

Sort Order:

  • Ascending: It sorts the order of selected dimension in ascending order.
  • Descending: It sorts the order of selected dimension in descending order.

Sort by:

The field can be sorted by different types of methods. It is explained as follows.

Data Source order It sorts the field based on data source order.
Alphabetic It sorts the field based on the alphabetic order.
Field It sorts the field based on other dimension or measure values.
Manual The user can manually sort the data using this option.

In this example, the category is sorted based on another field namely ‘Sales.’

Step 3: In this window,

  1. Click on ‘Field’ radio button.
  2. Select the field on which the category is to be sorted.
  3. Select the aggregation type.
  4. Click on OK.

Sort By

The above example sorts the category field based on the sum of sales in ascending order.

It sorts the data as shown in the figure.

Sort By

Types of Sorting in Tableau

The dialog above is only one of several ways to order a view, and the method chosen decides whether the order survives a filter change or a new data refresh. Four approaches are available.

  • Quick sort: The small ascending and descending icons on the toolbar, or the icon that appears when hovering over an axis. One click sorts by the measure already in the view. This is the fastest option and is stored as a computed sort.
  • Computed sort: The Sort dialog shown above, driven by a field and an aggregation. Because the order is recalculated each time, it stays correct when filters change or new members arrive.
  • Manual sort: Dragging headers into position, or using the arrow buttons in the Sort dialog. The order is stored member by member, so a new member added later will not be placed automatically.
  • Nested sort: Applied when two dimensions sit on the same shelf. A normal sort orders members across the whole view, while a nested sort orders them independently inside each pane, which is usually what a reader expects from a grouped bar chart.

One rule prevents most confusion: use a computed sort whenever the data will change, and reserve manual sorting for a fixed list such as a set of five regions that never grows.

Sorting changes the order of members. The remaining features on this page change the members themselves, starting with groups.

What is Tableau Group?

A Tableau Group is a set of multiple members combined in a single dimension to create a higher category of the dimension. Tableau allows the grouping of single-dimensional members and automatically creates a new dimension adding the group at the end of the name. Tableau does not do anything with the original dimension of the members.

Create Groups

Group is used to combine members present in a field. For example, aggregated values of ‘Furniture’ and ‘Office Supplies’ can be obtained by using group. Once the grouping data in Tableau is done, aggregated value of ‘Furniture’ and ‘Office Supplies’ can be shown in the visuals. The procedure to Group Data in Tableau is given as follows.

Step 1)

  1. Right-click on the dimension ‘Category’.
  2. Click on ‘Create’ option.
  3. Select ‘Group’ option.

Create Groups

Step 2) It opens the ‘Create group’ window.

  1. Type the name of the group data in Tableau.
  2. Select the members to be grouped.
  3. Click on ‘Group’ button.

Create Groups

Step 3) In Edit Group Window,

1. It creates groups in Tableau of ‘Furniture’ and ‘Office supplies’.

2. Click on Ok to create the group.

Create Groups

It created a group in Tableau with the name of Category (Group) and added in the dimension list. This can be used for visualizing the group by in Tableau method for members present in a field.

The following image explains the functionality of Tableau create group. The sum of sales is visualized for both furniture and office supplies for grouping in Tableau.

Create Groups

An “Other” bucket can also be added from the same Edit Group window, which collects every member left ungrouped. That is useful when only the top few members matter and the remainder should be summarised into one bar.

Create Hierarchy

Hierarchies can be built in Tableau to visualize the data in granular level. Tableau hierarchies can be created by following the given steps.

Step 1) Go to a worksheet.

  1. Select a dimension to create a hierarchy. Right-click on the dimension.
  2. Select ‘Hierarchy’ option.
  3. Click on ‘Create hierarchy’ option.

Create Hierarchy

Step 2) It opens the ‘Create Hierarchy’ Window.

  1. Enter a name for hierarchy.
  2. Click on OK.

Create Hierarchy

It creates a Hierarchy as shown in the image.

Create Hierarchy

You can add another field to the box and create the hierarchy. In this example, the city is added into a country hierarchy.

Create Hierarchy

Once the hierarchy is placed on a shelf, a plus sign appears on the field. Clicking it drills the view down to the next level, and the minus sign rolls it back up, so a single worksheet can serve both a country overview and a city detail view.

Build Sets

Sets create a set of members out of the field present in a data set. It acts as a separated field or dimension. The procedure to build sets is given as follows.

Step 1) Go to a Worksheet.

  1. Right-click on a dimension.
  2. Select ‘Create’ option.
  3. Click on ‘Set’ option.

Build Sets

Step 2) It opens ‘Create Set’ Window.

  1. Name the set to be created.
  2. Select the members needs to be added in the set.
  3. Click on OK.

Build Sets

This creates a set of the given name. Dragging the set onto a shelf splits the view into In and Out, so members inside the set can be compared directly against everything else.

Groups vs Hierarchies vs Sets

All three features create a new field in the Data pane, which is why they are easy to confuse. The table below shows what each one actually does.

Feature What it produces Use it when
Group A new dimension where several members share one label, suffixed with (group) Members need combining or renaming, for example merging spelling variants of one city
Hierarchy A nested folder of existing dimensions with drill-down controls Fields have a natural parent and child relationship, such as country, state, and city
Set A two-value In/Out field marking membership A subset must be isolated or compared against the remainder, such as the top ten customers

Sets have one capability the other two lack: a dynamic set defined by a condition, such as the top ten customers by sales, refreshes automatically as the data changes. Groups and hierarchies are always fixed by their definition. Once fields are shaped this way, the results are usually presented through the chart types covered in the Tableau charts and graphs tutorial.

FAQs

A manual sort stores a fixed member order, so removing or adding members leaves gaps. Switching to a computed sort on a field and aggregation recalculates the order every time the view refreshes.

No. Groups are defined by selecting members manually. For rule-based bucketing, use a calculated field with CASE or IF logic, or a dynamic set built from a condition.

A group combines chosen members of a dimension. A bin divides a numeric measure into equal-width ranges, which is how histograms are built. Groups are categorical, bins are numeric.

Tableau Prep Builder offers fuzzy grouping that clusters similar spellings, pronunciations, and common characters. The suggested clusters should be reviewed, because genuinely different members can look alike.

AI features suggest orderings that highlight outliers or ranking, but the right order depends on the question being asked. A time series stays chronological even when a value sort looks tidier.

Summarize this post with: