Introduction to Sets in Tableau

Sets in Tableau are custom fields that define a subset of data based on a condition. They help in filtering and segmenting data dynamically. There are two types of sets in Tableau:

  1. Fixed Sets – The members do not change unless manually edited.
  2. Dynamic Sets – The members update automatically based on data changes.

This guide focuses on Dynamic Sets and how to use them effectively in Tableau.

Also Read: Dimensions and Measures in Tableau

What Are Dynamic Sets?

Dynamic Sets in Tableau are collections of data points that update automatically based on user interaction or changes in data. They allow you to segment data dynamically without manually modifying set members.

Key Features of Dynamic Sets:

  • Automatically update when data changes.
  • Can be created using conditions or formulas.
  • Used to filter, highlight, or compare data.
  • Can be combined with calculated fields.

How to Create a Dynamic Set

Follow these steps to create a Dynamic Set in Tableau:

1. Open Tableau and Connect to Data

Ensure your dataset is loaded into Tableau before proceeding.

2. Create a Set

  • Navigate to the Data Pane (left side of the screen).
  • Right-click on a dimension (e.g., Customer Name or Product Category).
  • Select Create Set.

3. Define Set Conditions

A new window will appear with options to create the set dynamically:

  • General Tab: Manually select values.
  • Condition Tab: Define logical conditions like SUM(Sales) > 1000.
  • Top Tab: Rank data dynamically based on a metric (e.g., Top 10 customers by sales).
  • Click OK to create the dynamic set.

Using Dynamic Sets in Tableau

Once you’ve created a dynamic set, you can use it in several ways:

1. Filtering Data

  • Drag the set onto the Filters shelf to display only members in the set.

2. Creating a Set Action (User Interaction)

Set actions allow users to dynamically update the set based on interactions:

  • Go to WorksheetActions.
  • Click Add ActionChange Set Values.
  • Select the created set and define the action.
  • Users can now select data points in the visualization to update the set dynamically.

3. Highlighting Data

  • Place the set in the Color shelf of the Marks card.
  • Members inside the set will be highlighted differently from those outside it.

4. Combining Sets

You can combine multiple sets to create new insights:

  • Right-click on any set → Create Combined Set.
  • Choose two sets and define their relationship (INTERSECT, UNION, etc.).

Example Use Cases of Dynamic Sets

Here are some practical ways to apply Dynamic Sets in Tableau:

1. Top 10 Customers by Sales

  • Create a set based on Customer Name.
  • Use the Top tab and select Top 10 by SUM(Sales).
  • Apply the set as a filter to show only top customers dynamically.

2. Highlighting High-Value Transactions

  • Create a set based on Order Amount > 5000.
  • Drag the set to Color in the Marks card to differentiate high-value transactions.

3. Customizable Dashboard Filters

  • Create a set for Region.
  • Use a Set Action to let users click on a region and filter the dashboard dynamically.

Best Practices for Using Dynamic Sets

  • Use Set Actions to improve user interactivity.
  • Combine sets with calculated fields for advanced insights.
  • Optimize performance by avoiding overly complex conditions.
  • Always test dynamic sets with sample data before applying to large datasets.


We hope this article about Understanding Dynamic Sets in Tableau was helpful for you and you learned a lot of new things from it. If you have friends or family members who would find it helpful, please share it to them or on social media.

Join our social media for more.

Also Read:

Spread the love

Recent Posts

Mastering Pivot Table in Python: A Comprehensive Guide

Pivot tables are a powerful tool for summarizing and analyzing data, and Python’s Pandas library…

1 week ago

Data Science Interview Questions Section 3: SQL, Data Warehousing, and General Analytics Concepts

Welcome to Section 3 of our Data Science Interview Questions series! In this part, we…

2 weeks ago

Data Science Interview Questions Section 2: 25 Questions Designed To Deepen Your Understanding

Welcome back to our Data Science Interview Questions series! In the first section, we explored…

2 weeks ago

Data Science Questions Section 1: Data Visualization & BI Tools (Power BI, Tableau, etc.)

Data Science Questions in Section 1 focus on the essential concepts of Data Visualization and…

2 weeks ago

Optum Interview Questions: 30 Multiple Choice Questions (MCQs) with Answers

In this article, we’ve compiled 30 carefully selected multiple choice questions (MCQs) with answers to…

2 weeks ago

Day 15 of Learning Python for Data Science: Exploring Matplotlib Visualizations and EDA

Welcome to Day 15 of our Python for Data Science journey!On Day 15, we dived…

2 weeks ago