Clustering is a powerful feature in Tableau that allows you to easily group similar dimension members. This type of clustering helps you create statistically-based segments which provide insight into how different groups are similar as well as how they are performing compared to each other. We’ve always leaned on segmentation as a tactic for making my analyses with Tableau more powerful, and the post, How to Create a Scatter Plot in Tableau, shares how to make a simple quadrant-based segmentation. Clustering takes this a step further by statistically grouping the objects on a view using the variables on the view.
This post shows you how to use the cluster feature in Tableau and how to make the generated clusters more permanent for segmentation analyses.
To demonstrate, we will first recreate the scatter plot mentioned above, which looks at sales and profit ratio by the Product Name dimension in the Sample – Superstore data set.
To create quadrant-based segments, at this point we would add a reference line for average on each axis. We can make this segmentation much more scientific by using the Cluster feature. Cluster lives on the Analytics Pane in Tableau, so to create a cluster analysis, simply navigate to the analytics pane (towards the top-left corner of the authoring interface) and drag “Cluster” onto the view.
A few things to point out here:
After you’re done creating the clusters, click the X in the top-right corner of the Clusters dialog box to remove it from the view. You can always edit the clusters again by right-clicking on the Clusters dimension on the Color Marks Card and choosing “Edit clusters…”.
Creating a cluster analysis is that easy in Tableau, but here are a few more ways this powerful feature can be used:
For more on filters, see the post: An Introduction to Filters in Tableau
For more on sets, see the post: An Introduction to Sets in Tableau
Not sure on your next step? We'd love to hear about your business challenges. No pitch. No strings attached.