<div dir="ltr">Good morning,<div>With qgis 3.28 I have a point layer (boreholes) . And I have a polygonal layer (departments/districts). My goal would be to via Qgis (right click boreholes point layer -> attributes form) to automatically fill the "department" field of the boreholes layer. The filling would be done via spatial intersection. The field of the departments table that I would like to retrieve is called "nom_dep". I am attaching a screenshot of my settings.<br></div><div><img src="cid:ii_lbmbhsy40" alt="image.png" width="712" height="471" style="margin-right: 0px;"><br></div><div><br></div><div><br></div><div>For the "layer" parameter, I filled the department layer For the "key column" parameter, I entered the primary key (gid) of the department column For the parameter column of values, I put the field "nom_dep" from the table of departments<br><br>I didn't fill in anything for the "Column description" parameter.<br><br>In the "Filter expression" section I filled like that:</div><div><br>aggregate(<br>layer:='AdminExpressDept_AOI_Po_20210331',<br>aggregate:='concatenate_unique',<br>expression:=attribute('dep_name'),<br>concatenator:=',',<br>filter:=intersects(geometry(@parent), $geometry))<br></div><div><br></div><div><br></div><div>I have no error message. But it does not work. I do not see the values of departments entered in the field of the table of boreholes. Did I make a mistake? Should another Qgis filter expression be used?<br></div><div><br></div><div>Thanks.</div></div>