On 3/14/2021 5:28 PM, Andrea Giudiceandrea wrote:
David Strip-4 wrote
aggregate( 'B','sum', "Confirmed", "Country_Region" 
ILIKE attribute($currentfeature, 'SOVEREIGNT')) 
Hi David,
in the filter the source feature can be accessed with the variable @parent
https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#aggregate

aggregate( 'B','sum', "Confirmed", "Country_Region" ILIKE attribute(@parent,
'SOVEREIGNT'))


that did it. Does that mean that attribute(@parent, ...) is the value of the attribute for the feature for which the attribute is being calculated?
And what does $currentfeature mean? Is it evaluated to the current feature of Layer B, not A?
_______________________________________________
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

Reply via email to