Guide to Cluster Analysis in Tableau
- Bernard Kilonzo

- Mar 21
- 2 min read

Overview
Cluster analysis has become an essential technique for analysts who want to move beyond descriptive charts and uncover deeper structure in their datasets. Whether you’re segmenting customers, grouping facilities with similar performance, or exploring demographic patterns, clustering helps you see relationships that aren’t obvious in raw tables or standard visualizations. Tableau brings this capability directly into the visual analytics workflow through an intuitive drag‑and‑drop interface powered by the k‑means algorithm.
What Cluster Analysis Does
At its core, cluster analysis groups similar data points together based on shared characteristics. Instead of starting with predefined categories, clustering lets the data speak for itself. Each resulting group - called a cluster - contains items that are more similar to each other than to items in other clusters.
This makes clustering especially useful when:
You don’t know the natural segments in advance.
You want to simplify a large, complex dataset.
You need to identify patterns that cut across multiple variables.
You’re exploring data to generate hypotheses or guide deeper analysis.
Tableau uses k‑means clustering, a widely used unsupervised learning method. The algorithm works by:
Selecting k initial cluster centers.
Assigning each data point to the nearest center.
Recalculating the centers based on assigned points.
Repeating the process until the clusters stabilize.
Creating Clusters in Tableau
You can create clusters in Tableau by dragging the Cluster model from the Analytics pane onto a view - Tableau will automatically group similar marks using K‑Means and let you customize the variables and number of clusters.
To do so.
Create a scatter plot by dragging Sales and Profit to the Columns and Rows shelve respectively.
Turn off aggregation by going to Analysis Menu >> uncheck “Aggregate Measures” to plot each row as a mark in the view (alternatively, you can drag Row ID to the detail shelf).
Add clusters – open analytics pane and drag Cluster into the view or double-click it.
Tableau will automatically create a Cluster field on color (Note; you can customize the Clusters by (i) Adding or removing variables (ii) Change the aggregations (iii) Set the number of clusters)

Note, you can edit clusters anytime from the marks card. As well as adding more fields to the detail and tooltip for richer interpretation.
Conclusion
Cluster analysis in Tableau ultimately empowers analysts to move beyond surface‑level reporting and uncover the natural structure hidden within complex datasets, making it easier to identify meaningful segments, compare performance patterns, and guide more targeted decisions. By combining the intuitive drag‑and‑drop experience of Tableau with the statistical rigor of k‑means clustering, users can quickly explore relationships across multiple variables, validate emerging patterns, and integrate cluster insights into broader dashboards and workflows. As organizations increasingly rely on data to shape strategy, Tableau’s clustering capability offers a practical, accessible way to transform raw information into clearer understanding and more actionable insights.
If you like the work we do and would like to work with us, drop us an email on our contacts page and we’ll reach out!
Thank you for reading!!
