<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Daniel,</p>
<p>One alternative way to do this, without field calculator, is to use the "Processing Toolbox" (see menu processing) and use the "Count opints in polygon (weighted)" algorithm. This should do what you want, but the downside to this approach is that you end up with a new layer.</p>
<p>If you want to use the field calculator (without creating a new layer) you will have to look at aggregates and spatial relationship functions. I am not 100% sure if this would work - I currently don't have the time to test it - but might be worth a try.</p>
<p>Good luck!</p>
<p>Andreas</p>
<p>On 2018-04-04 14:27, Daniel Alejandro Montecinos Rubilar wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored -->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393; mso-fareast-language: ES-TRAD;">Hi. I have a question urgent. What I try to do is then updated columns in a data layer with another layer. For example , I have two layers A = Poligono , B = Points . The layer B contains real values. Then would do two things. 1. Count how many points of the layers B are within the layer A. 2. From the points of the layer B that are within the polygon layer A, I need the sum of their values ​​and paste this sum in a column of created layer A. I tried to make the crossing with the "field calculator" function, using the functions: "geomwithim", "geomintersects" and "intersecting_geom_sum", but without results.</span><span style="color: black; mso-fareast-language: ES-TRAD;"><!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393; mso-fareast-language: ES-TRAD;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393; mso-fareast-language: ES-TRAD;">I hope I have been able to explain.</span><span style="color: black; mso-fareast-language: ES-TRAD;"><!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393; mso-fareast-language: ES-TRAD;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393; mso-fareast-language: ES-TRAD;">Greetings and thanks for your support.</span><span style="color: black; mso-fareast-language: ES-TRAD;"><!-- o ignored --></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; color: #005393;"><!-- o ignored --> </span></p>
<p class="MsoNormal"><span><!-- o ignored --> </span></p>
</div>
<!-- html ignored --><br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br /> Qgis-user mailing list<br /> <a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br /> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br /> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-user</a></div>
</blockquote>
<p><br /></p>

</body></html>