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

Day 13 of Learning Python for Data Science: Mastering Pivot, Apply and RegEx

Welcome to Day 13 of Learning Python for Data Science! Today, we’re focusing on three…

5 days ago

Practice day 12 of Learning Python for Data Science

Test your understanding of Python Data Structure, which we learned in our previous lesson of…

1 week ago

Day 12 of Learning Python for Data Science – Pandas

Welcome to Day 12 of Learning Python for Data Science. Today, we’ll dive into Pandas,…

1 week ago

Day 10 Of Learning Python for Data Science – NumPy Array In Python

NumPy Array in Python is a powerful library for numerical computing in Python. It provides…

2 weeks ago

Day 9 of Learning Python for Data Science – Queries Related To Functions In Python

Welcome to Day 9 of Learning Python for Data Science. Today we will explore comprehensions,…

2 weeks ago

Practice day 8 of Learning Python for Data Science

Test your understanding of Python Data Structure, which we learned in our previous lesson of…

2 weeks ago