This blog will give a simple explanation of what sets are, and how they can be used with examples for different types of sets.
What are sets?
Sets in Tableau are custom fields that define a subset of data based on conditions. They allow you to compare and analyse specific segments of data in a dynamic and flexible way.
Types of sets
Constant Sets
- A set created by manually selecting members from a dimension
- Stays the same unless you manually edit it — even if the data changes.
Example:
If we had a shopping list and wanted to create a sperate group of 5 items for breakfast we can create a constant set to define this group:
- Right click on the ingredients dimension to create a set
- Select create
- Click on Set
- Name your set ‘Breakfast’
- Manually Select the items you want in your breakfast
- Drag the newly created Breakfast set to colour

Computed Sets
- Members of the set are DYNAMIC and will change when the underlying data changes.
- There are three types: general, condition or top.
Example:
Following on from our shopping list we have a list of potential meals we can create from a list of ingredients. However due to the cost of living crisis, we only want to make the meals which are £3.50 or less. In order to determine what these meals are we can use a conditional set:
- Right click on the Meal dimension to create a set
- Click on the conditional tab
- Change the name to Cheapest Meals
- Select by field
- Find the SUM of ‘Price’
- Change the sign to <= and type 3.5
- Select Ok and drag Cheapest Meals to colour

Combined Sets
- These set are made up of two different sets to compare their members.
- Lets you compare overlap, difference, or union between sets.
- This is only possible if the two sets are based on the same field.
Example:
Based on our previous example of finding the cheapest meals, lets assume we want to find the cheap and easiest meals combined( easiest meals refers to the bottom 3 meals which have the least amount of ingredients). We can create a combined set based on meals below £3.50 AND the least amount of ingredients:
Create easiest meal set:
- Right click on the ‘Meal’ dimension to create a set
- Click on the Top tab
- Change the name to Easiest Meals
- Select by field
- Set to bottom 3 by ‘Ingredients’ by Count (Distinct)
- Select Ok

Create combined set:
- Right click on created ‘Cheapest Meals’ set
- Create Combined Set
- Name set ‘Cheap and Easy Meals’
- Select Easiest meals as the other set to join to
- Select Shared members in both sets(inner join)
- Select OK
- Drag combined set to the rows
