I need to cluster a point layer but the resulting cluster can't have points with different values for a given attribute. For instance, if I am clustering cities in Europe, the clusters in one country can't contain cities from a different country. I was looking around and I found this: