Using QGIS, my goal is to group "FSA"s (postal code or zip code ordering) into larger regions, and have data labels labelling these larger regions. The labels themselves would be the sum of measured values (in this case registered vehicles) pertaining to the "FSA"s.
For example, the larger region K0 consists of "FSA"s K0A, K0B, K0C, etc; and the label for the K0 region would equal the sum of registered vehicles for all the K0#s in the category. I'm more than happy to use conditional symbology to express the registered vehicle values as well, but in either case I don't know how to tell QGIS to use the summed data per larger region.
Currently the expression I've built reads as follows:
aggregate(
layer:='Ontario FSA shp',
aggregate:='sum',
expression:="MTO heat map_Total BEVs",
filter:="MTO heat map_Grouping"=K0
)
You can probably tell I'm not an expert, but have been using some of the example expressions as a baseline. The current expression returns all labels as '0'.


