Which groups of customers have similar buying patterns so we can target marketing better?
Clustering in Tableau - Dashboard Guide
Start learning this pattern below
Jump into concepts and practice - no test required
| Customer ID | Annual Spend ($) | Visits per Year | Product Category |
|---|---|---|---|
| C001 | 1200 | 15 | Electronics |
| C002 | 800 | 10 | Home |
| C003 | 1500 | 20 | Electronics |
| C004 | 400 | 5 | Garden |
| C005 | 700 | 8 | Home |
| C006 | 1300 | 18 | Electronics |
| C007 | 300 | 4 | Garden |
| C008 | 900 | 12 | Home |
- KPI Card: Total Customers = 8 (COUNTD([Customer ID]))
- KPI Card: Average Annual Spend = $887.50 (AVG([Annual Spend ($)]))
- Scatter Plot: X-axis = Visits per Year, Y-axis = Annual Spend, Points colored by Cluster
- Cluster Analysis: Tableau built-in clustering using Annual Spend and Visits per Year to create 3 clusters
- Table: Customer ID, Annual Spend, Visits per Year, Product Category, Cluster Number
+----------------------+----------------------+
| KPI: Total Customers| KPI: Avg Annual Spend|
| (8) | ($887.50) |
+----------------------+----------------------+
| Scatter Plot |
| Visits per Year vs Annual Spend |
| Points colored by Cluster |
+-------------------------------------------------+
| Customer Details Table |
| Columns: Customer ID, Spend, Visits, Category, |
| Cluster Number |
+-------------------------------------------------+
Filter by Product Category to update all components: KPIs, scatter plot, and table show only customers in selected categories.
Clicking a cluster in the scatter plot highlights customers in that cluster in the table.
If you add a filter for Product Category = 'Electronics', which components update?
- KPI cards show counts and averages only for Electronics customers.
- Scatter plot shows only Electronics customers colored by cluster.
- Customer details table lists only Electronics customers with cluster info.
Practice
What is the main purpose of clustering in Tableau?
Solution
Step 1: Understand clustering concept
Clustering groups data points that share similar characteristics without manual labeling.Step 2: Identify Tableau's clustering use
Tableau uses clustering to find natural groups in data automatically.Final Answer:
To group similar data points automatically -> Option CQuick Check:
Clustering = Group similar data [OK]
- Confusing clustering with sorting
- Thinking clustering creates charts
- Assuming clustering filters data
Which step correctly adds clusters in Tableau?
1. Drag fields to Rows and Columns
2. Open Analytics pane
3. Drag 'Cluster' onto the view
4. Adjust cluster countSolution
Step 1: Identify where 'Cluster' is located
In Tableau, 'Cluster' is found in the Analytics pane, not Data pane or menus.Step 2: Confirm correct action to add clusters
You drag 'Cluster' from Analytics pane onto the view to create clusters.Final Answer:
Drag 'Cluster' from Analytics pane to view -> Option DQuick Check:
Clusters come from Analytics pane [OK]
- Trying to drag 'Cluster' from Data pane
- Looking for 'Add Cluster' in right-click menu
- Using 'Show Me' panel for clusters
Given this Tableau clustering setup, what is the expected result?
- Data: Customers with sales and profit
- Clusters: 3 groups based on sales and profit
- View: Scatter plot of Sales vs Profit with clusters coloredWhat will the clusters show?
Solution
Step 1: Understand clustering variables
Clusters use sales and profit to group customers with similar values in both.Step 2: Interpret cluster meaning on scatter plot
Each cluster groups customers close in sales and profit, shown by colors.Final Answer:
Three groups of customers with similar sales and profit patterns -> Option AQuick Check:
Clusters group by sales and profit [OK]
- Assuming clusters sort alphabetically
- Thinking clusters use only one variable
- Believing clusters are random
What is wrong with this clustering setup in Tableau?
- Added 'Cluster' from Analytics pane
- Selected only one field: 'Customer ID'
- Result: All data points in one clusterSolution
Step 1: Analyze field choice for clustering
Using a unique identifier like Customer ID does not group similar data; each ID is unique.Step 2: Understand cluster result
Since all IDs are unique, Tableau places all points in one cluster by default.Final Answer:
Using only one unique ID field prevents meaningful clusters -> Option BQuick Check:
Unique IDs don't create clusters [OK]
- Setting cluster count to zero
- Thinking clusters need 3+ fields
- Believing Customer ID can't be used at all
You want to segment customers into 4 clusters using sales, profit, and discount in Tableau. Which approach is best?
- Create a scatter plot with sales and profit
- Add discount as a cluster variable
- Drag 'Cluster' from Analytics pane to view
- Set number of clusters to 4
What should you do to ensure meaningful clusters?
Solution
Step 1: Include all relevant fields for clustering
Using sales, profit, and discount together helps find groups based on all factors.Step 2: Set cluster count as desired
Setting clusters to 4 matches the goal of segmenting into four groups.Final Answer:
Include all three fields (sales, profit, discount) in clustering and set clusters to 4 -> Option AQuick Check:
Use all fields + 4 clusters [OK]
- Ignoring discount field
- Choosing wrong cluster count
- Creating separate clusters per field
