Hi Mars, you can use the aggregate functions from the expression builder: https://docs.qgis.org/3.22/en/docs/user_manual/expressions/functions_list.html#aggregates-functions Cheers Matteo