Tableau dashboard displaying the edit set box.

Creating Tableau Sets

By Celia Fryar

Read Time: 5 minutes

Tableau sets are one of the most versatile tools for performing data comparisons, creating dynamic highlights, and focusing attention on key subsets of your data. By grouping related data points based on specific conditions or selections, sets make it easier to analyze trends, identify outliers, and design interactive dashboards.

In this guide, we’ll explore how to create and use sets in Tableau, from simple manual selections to dynamic, parameter-driven conditions, so you can enhance the analytical power of your visualizations.

Tutorial Video

Step-by-Step Guide to Creating Sets in Tableau

Sets in Tableau can be created in multiple ways, depending on how you want to define the grouping of your data.

1. Creating a Set from a Selection in Tableau

You can create a set directly from your view by selecting marks on a visualization.

Start by holding Shift and selecting several marks on your chart.

Tableau worksheet showing multiple data marks selected using the Shift key to create a new set from the visualization.

Then, right-click on one of the selected marks and choose Create Set from the pop-up menu.

Tableau interface with selected data marks and a right-click menu open, highlighting the “Create Set” option.

Tableau will generate a new set, indicated by the double-ring icon in your Data Pane. Give your set a descriptive name and click OK.

This method is quick and intuitive—perfect for highlighting specific points such as the months with the highest costs or the top-performing categories.

2. Creating a Set from the Data Pane in Tableau

For a more structured approach, you can build a set from a dimension in your data source.

In the Data Pane, right-click a dimension from your Y-axis (e.g., Treatment Type) and select Create > Set.

Tableau Data Pane showing a right-click menu on the “Treatment Type” dimension with the path Create > Set highlighted.

In the Create Set dialog box, you’ll find three tabs: General, Condition, and Top.

Tableau Create Set dialog box open, displaying the General, Condition, and Top tabs for defining set criteria.

If you want Tableau to automatically update the set when new data becomes available, under the General Tab, select ‘Use All’.

Tableau Create Set dialog box with the General tab selected and the “Use All” option highlighted to include all data values.

Under the Top tab, you can choose to include the top or bottom items by a specific measure, such as the top 10 treatments by average cost.

Tableau Create Set dialog box with the Top tab selected, showing options to include the top 10 treatments by average cost.

Name your new set (e.g., Top 10 Treatments) and click OK.

Tableau Create Set dialog box showing the new set named “Top 10 Treatments,” with the OK button highlighted to save the set.

This asset has been added as a reusable asset in the data pane.

Tableau Data Pane showing the newly created “Top 10 Treatments” set added as a reusable asset.

This new set can then be applied to color, filters, or other marks in your visualization. To apply color, drag it from the pane into the Color section.

Tableau workspace showing the “Top 10 Treatments” set being dragged from the Data Pane to the Color shelf to apply color highlighting.

Tableau will dynamically classify data as “In” or “Out” based on the rules you defined.

Tableau visualization displaying data points colored by set membership, distinguishing items marked as “In” or “Out” of the defined set.

3. Combining Sets in Tableau

When analyzing data, you may want to compare multiple sets, such as the Top 5 and Bottom 5 performers, and view them together.

In the Data Pane, select both sets you want to combine.

Tableau Data Pane showing two sets selected simultaneously in preparation for creating a combined set.

Right-click and choose Create Combined Set.

Tableau Data Pane with two sets selected and a right-click menu open, highlighting the “Create Combined Set” option.

This action will create a new dataset in our Data Pane.

Tableau Data Pane displaying a new combined set created from existing sets, appearing as a new dataset.

To edit the new Combined Set, right-click on this treatment and select Edit Set.

Tableau Data Pane showing a right-click menu on the newly created combined set, with the “Edit Set” option highlighted.

In the Edit Set box, you now have the opportunity to provide more details on how you want these sets to be accounted for. That would depend on the data that you’re using. You have several other options, including the ability to discuss a separator with Tableau. The combined set can be used to highlight both high and low performers simultaneously within a single visualization, making it ideal for identifying outliers or boundary cases. For example, you can work with intersecting data or for your outer edges.

Tableau Edit Set dialog box open, displaying configuration options to define how combined sets are handled, including intersecting and outer edge selections.

4. Adjusting Sets with Context Filters in Tableau

When filters are applied to your dashboard, they may change the data being analyzed, which affects how sets are calculated. To ensure sets respect specific filters (like department or category), you can add filters to Context.

Right-click the filter in your Filters Shelf and choose Add to Context.

Tableau Filters Shelf showing a right-click menu on an active filter, with the “Add to Context” option highlighted to change the order of execution.

This ensures that Tableau applies the context filter first before recalculating which data points belong to your set.

Tableau visualization displaying data updated after a context filter is applied, ensuring sets are recalculated based on the new filtered data.

5. Creating Dynamic Sets with Parameters

Sets can also be made interactive using parameters. Instead of hardcoding values (such as a fixed top 10), create a parameter that allows users to control the threshold dynamically.

You can build a dynamic condition directly in the Edit Set dialog instead of maintaining separate sets.

Tableau Edit Set dialog box displaying a custom condition formula setup, allowing users to build a dynamic condition instead of using separate sets.

Edit your existing set and go to the Condition tab. Switch from selecting by field to using a custom formula. Replace any hardcoded thresholds with a parameter reference (e.g., [Average Cost] > [Cost Threshold Parameter]).

Tableau Edit Set dialog box open on the Condition tab, showing a custom formula with a parameter reference replacing a hardcoded threshold.

You can also, create a parameter control and display it as a parameter legend in your dashboard.

Tableau dashboard showing a parameter control displayed as a parameter legend, allowing users to adjust values interactively.

When users adjust the parameter value, Tableau updates the condition dynamically — only highlighting data that meets the new criteria.

Tableau visualization dynamically updating highlighted data based on user-adjusted parameter values, reflecting real-time changes to the set condition.

Why Sets Matter in Tableau

Sets empower analysts to isolate patterns, compare specific data segments, and create responsive dashboards that reveal deeper insights. Whether you’re identifying top-performing categories, comparing key business metrics, or building interactive filtering systems, sets give you flexibility and control.

With practice, you can combine sets, parameters, and context filters to build powerful analytical frameworks that adapt dynamically to your data.

Need Help with Tableau?

At XeoMatrix, we help organizations unlock the full potential of Tableau. Whether you’re creating advanced dashboards, using sets to drive comparisons, or exploring dynamic analytics, our experts can guide you through best practices and performance-optimized designs.

Let us help you transform your Tableau environment into a powerful decision-making tool. Contact us today for tailored Tableau solutions designed to meet your business goals.

Picture of Celia Fryar

Celia Fryar

Learn more about Celia Fryar

Latest Blog Posts

Upcoming Events