Connect all points with a line to the n
nearest points with the same attribute value, where n
is the number of points you want to aggregate to a group. You can use different values for n
for different attribute values (like based on your example n=6 for value=12).
Then create the convex hull of these lines, dissolve the result and convertt multipart to single part geometries. To do this, proceed as follows: