<div dir="ltr">I agree that I think there was a misunderstanding in the requirement, however I am unsure how you resolve this with expressions.<div><br></div><div>In my view, an aggregate expression is what you need, but I am unsure how you would be able to retrieve the cluster geometry. The current expression is buffering each feature geometry so it's finding nearby neighbouring points, not identifying clusters.</div><div><br></div><div>You could feasibly collect the geometries within each cluster and retrieve a centroid that is buffered using expressions, but identifying which points form a part of each cluster would be difficult.</div><div><br></div><div>You could probably perform various K-means/ DBSCAN clustering operations to get this at the various scales that you need though, then use that attribute value with an expression similar to centroid(collect( $geometry,  "CLUSTER_ID" )). Once that is done though, you won't need to use the spatial intersection in the aggregate expression anymore anyway.</div><div></div><div><div><div><div><br></div><div>Again, you'll be challenged to find the right buffer distance to make this effective, and be able to exclude individual points. This makes the effort and utility of the automatic clustering symbology less than ideal for your use case as you could generate these styles yourself. It may be easier to pay a developer to expose the cluster geometry to the QGIS expressions API.</div></div></div></div><div><br></div><div>Hopefully that's helpful and not totally confusing.</div><div><br></div><div>Regards</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 22 Jun 2021 at 15:03, Dario C <<a href="mailto:dario955i@gmail.com">dario955i@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Alexandre, <div>thank you for your reply, but I'm not sure I got it. I don't want to see the @cluster_size (number of symbols within the cluster), but the sum of a specific field.</div><div>I don't know what "@cluster_value" is. I see only @cluster_size and @cluster_colour as options.</div><div><br></div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 22 giu 2021 alle ore 12:12 Alexandre Neto <<a href="mailto:senhor.neto@gmail.com" target="_blank">senhor.neto@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi Dario,<div dir="auto"><br></div><div dir="auto">You don't need such complicated expression. There's a cluster variable that returns the value for you. It's @cluster_value.</div><div dir="auto"><br></div><div dir="auto">This is well documented here:</div><div dir="auto"><br></div><div dir="auto"><a href="https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#point-cluster-renderer" target="_blank">https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#point-cluster-renderer</a><br></div><div dir="auto"><br></div><div dir="auto">Hope it helped.</div><div dir="auto"><br></div><div dir="auto">Alexandre Neto</div><div dir="auto">QGIS Support</div><div dir="auto"><a href="http://www.qcooperative.net" target="_blank">www.qcooperative.net</a></div><div dir="auto"><br></div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">A terça, 22/06/2021, 09:55, Dario C <<a href="mailto:dario955i@gmail.com" target="_blank">dario955i@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi, <div>I think I'm on the right way using this expression:</div><div>aggregate('LayerID','sum',"FIELD",filter:=intersects(buffer($geometry,60),geometry(@parent)))<br></div><div><br></div><div><img src="cid:ii_kq7sb3pu0" alt="image.png" width="281" height="256" style="margin-right: 0px;"><br></div><div>In point cluster I set 5 mm as distance (size of symbol is 4mm), so I thought that the buffer of my expression needed to be 5. Actually 5 does not work, so I changed to 5 multiply by the scale of the drawing (1/12.000), so I set 60.</div><div>The point is that it works not so precise. In the screenshot you can see that, when you have two cluster close each other, the total sum is correct, but some parts are shifted to another cluster.</div><div><br></div><div>Thanks for your help</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno dom 20 giu 2021 alle ore 15:15 Dario <<a href="mailto:dario955i@gmail.com" rel="noreferrer" target="_blank">dario955i@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
I’m working on a big scale, so I need to see my points using point cluster.<br>
I’d like to see as label the sum of a specific field of the point of the same cluster.<br>
<br>
I started using aggregate expression and buffer intersection as filter, but nothing good...<br>
<br>
Thank you in advance.<br>
<br>
Cheers mm<br>
<br>
_</blockquote></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" rel="noreferrer" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>
</blockquote></div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>