<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Times New Roman \(Cuerpo en alfa";
        panose-1:2 2 6 3 5 4 5 2 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EstiloCorreo19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#005393;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=ES-CL link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='color:#005393;mso-fareast-language:EN-US'>I can’t find a solution to my problem, could someone help me?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='color:#005393;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:12.0pt;color:black'>De: </span></b><span style='font-size:12.0pt;color:black'>Andreas Neumann <a.neumann@carto.net><br><b>Fecha: </b>miércoles, 4 de abril de 2018, 10:52<br><b>Para: </b>Daniel Alejandro Montecinos Rubilar <daniel.montecinos.r@gmail.com><br><b>CC: </b><qgis-user@lists.osgeo.org><br><b>Asunto: </b>Re: [Qgis-user] Help in Field Calculator<o:p></o:p></span></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p><a name="_MailOriginalBody">Hi Daniel,<o:p></o:p></a></p><p><span style='mso-bookmark:_MailOriginalBody'>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.<o:p></o:p></span></p><p><span style='mso-bookmark:_MailOriginalBody'>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.<o:p></o:p></span></p><p><span style='mso-bookmark:_MailOriginalBody'>Good luck!<o:p></o:p></span></p><p><span style='mso-bookmark:_MailOriginalBody'>Andreas<o:p></o:p></span></p><p><span style='mso-bookmark:_MailOriginalBody'>On 2018-04-04 14:27, Daniel Alejandro Montecinos Rubilar wrote:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm'><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'>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><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'> </span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'>I hope I have been able to explain.</span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'> </span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'>Greetings and thanks for your support.</span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'> </span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'><span style='color:#005393'> </span><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-bookmark:_MailOriginalBody'> <o:p></o:p></span></p></div><p class=MsoNormal><span style='mso-bookmark:_MailOriginalBody'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'>_______________________________________________<br>Qgis-user mailing list<br></span></span><a href="mailto:Qgis-user@lists.osgeo.org"><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'>Qgis-user@lists.osgeo.org</span></span><span style='mso-bookmark:_MailOriginalBody'></span></a><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'><br>List info: </span></span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank"><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'>https://lists.osgeo.org/mailman/listinfo/qgis-user</span></span><span style='mso-bookmark:_MailOriginalBody'></span></a><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'><br>Unsubscribe: </span></span><a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank"><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'>https://lists.osgeo.org/mailman/listinfo/qgis-user</span></span><span style='mso-bookmark:_MailOriginalBody'></span></a><span style='mso-bookmark:_MailOriginalBody'><span style='font-family:"Courier New"'><o:p></o:p></span></span></p></div></blockquote><p><span style='mso-bookmark:_MailOriginalBody'><o:p> </o:p></span></p></div></body></html>