Clustering in Tableau

Last Updated : 13 Feb, 2026

Clustering in Tableau is an advanced analytics feature that automatically groups similar data points based on selected measures. It helps identify hidden patterns, similarities and natural groupings within data without writing any complex code. Clusters are useful for:

  • Discovering patterns in large datasets
  • Grouping similar records automatically
  • Segmenting data for better analysis
  • Performing exploratory data analysis visually

Creating Cluster in Tableau

Note: For this article, a sample dataset "auto_mpg.csv" is used, to download click here.

Step 1: Create the Base Scatter Plot

From the Data pane, drag Horsepower to the Rows shelf and drag Displacement to the Columns shelf.

Screenshot-2026-01-31-113415
Horsepower to rows shelf and Displacement to column shelf

Step 2: Turn Off Aggregation

From the top menu, click Analysis and uncheck Aggregate Measures.

Screenshot-2026-01-31-113542
uncheck Aggregrate Measures

Disabling aggregation ensures that each data point is shown individually instead of being summarized.

Step 3: Apply Clustering

1. On the left sidebar, click the Analytics tab (next to Data) and under the Model section, double-click and select Cluster.

Screenshot-2026-01-31-124218
double-click Cluster

2. A Cluster dialog box will appear automatically, set the Number of Clusters to 3.

Screenshot-2026-01-31-124357
enter number of clusters you want

Tableau now automatically groups the data points into three clusters using built-in statistical algorithms.

Step 4: Modify Number of Clusters (Optional)

1. In the Marks card, click the Cluster pill and select Edit Clusters.

Screenshot-2026-01-31-124528
select Edit clusters

2. Change the number of clusters (for example, from 3 to 4) if required.

Screenshot-2026-01-31-124551
enter Number of Clusters you want

This allows experimentation with different cluster groupings to better understand the data.

Step 5: Add More Detail to Clusters

From the Data pane, drag MPG to Detail in the Marks card.

Screenshot-2026-01-31-124648
drag MPG field to Detail

Now, when hovering over any data point, the MPG value appears in the tooltip, providing more insight into each cluster.

Final Output

Screenshot-2026-01-31-124713
Clustering

The final visualization displays a clustered scatter plot where data points are grouped based on similarities in horsepower and displacement. Each cluster is visually distinguished by color, making patterns and relationships easier to identify.

Comment
Article Tags:

Explore