Hi Dario, You don't need such complicated expression. There's a cluster variable that returns the value for you. It's @cluster_value.
This is well documented here: https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/vector_properties.html#point-cluster-renderer Hope it helped. Alexandre Neto QGIS Support www.qcooperative.net A terça, 22/06/2021, 09:55, Dario C <[email protected]> escreveu: > Hi, > I think I'm on the right way using this expression: > > aggregate('LayerID','sum',"FIELD",filter:=intersects(buffer($geometry,60),geometry(@parent))) > > [image: image.png] > 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. > 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. > > Thanks for your help > > > > Il giorno dom 20 giu 2021 alle ore 15:15 Dario <[email protected]> ha > scritto: > >> Hi, >> I’m working on a big scale, so I need to see my points using point >> cluster. >> I’d like to see as label the sum of a specific field of the point of the >> same cluster. >> >> I started using aggregate expression and buffer intersection as filter, >> but nothing good... >> >> Thank you in advance. >> >> Cheers mm >> >> _ > > _______________________________________________ > Qgis-user mailing list > [email protected] > List info: https://lists.osgeo.org/mailman/listinfo/qgis-user > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user >
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
