6 min read
How to Use Sets for Data Analysis
Master the use of sets for advanced data analysis in Tableau
What are Sets?
Sets divide data into two parts:
- IN the set
- OUT of the set
Example: "Top 10 Customers" set
- IN: Top 10 customers
- OUT: All other customers
Sets vs Groups
| Sets | Groups |
|---|---|
| IN or OUT | Multiple categories |
| Dynamic or static | Always static |
| Two parts | Many parts |
Creating Sets
Method 1: From Visualization
- Select marks on chart
- Right-click
- Select "Create Set"
- Name it and click OK
Method 2: From Data Pane
- Right-click a dimension
- Select "Create" → "Set"
- Choose type (Manual, Condition, Top)
- Click OK
Types of Sets
1. Manual Set
You choose specific values:
- Select "New York", "Los Angeles", "Chicago"
- These are IN the set
2. Condition Set
Based on a rule:
- Customers where Sales > $10,000
- Products where Profit > 0
3. Top N Set
Based on ranking:
- Top 10 Products by Sales
- Bottom 5 Customers by Orders
Using Sets
In Filter
- Drag set to Filters
- Choose "In" or "Out"
In Color
- Drag set to Color
- IN = One color, OUT = Another
In Calculations
IF [My Set] THEN "VIP" ELSE "Regular" END
Example: Top 10 Products
- Right-click Product Name
- Create → Set
- Select "Top" tab
- Set: Top 10 by Sales
- Click OK
Now use this set to highlight top performers!
Combined Sets
Combine two sets:
- Select two sets (Ctrl+Click)
- Right-click → "Create Combined Set"
- Choose: All members, Shared members, etc.
Dynamic Sets
Sets with conditions update automatically:
- "Customers with Sales > $10K" updates when data changes
- No manual updating needed!
Use Cases
- Top/Bottom performers
- VIP customers
- High-profit products
- Regional focus
- Outlier detection
Tips
- Name sets clearly
- Use conditions for dynamic sets
- Combine sets for complex analysis
- Use in/out for highlighting
Summary
Sets split data into IN and OUT. Use manual selection, conditions, or Top N. Great for focusing on specific data subsets!