I have a landcover layer with an attribute of the administrative region ("GEN"). I am looking for an expression in the field calculator to calculate the summarized area depending on the GEN-field value.

I know I could do it with dissolve tool or with group stats, but I would like to have the "GEN" area sum as a field value in my attribute table.

enter image description here

  • Dissolve by name, calculate area, multi-to-single part, pole of inaccessibility, join attributes by location back to your original layer.
    – Erik
    Dec 8 '20 at 14:54
  • 2
    Ah, I found it. I need this expression: sum("area",group_by:="GEN") Dec 8 '20 at 14:58

I just need to use that handy expression in the Field Calculator:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.