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
    Commented Dec 8, 2020 at 14:54
  • 2
    Ah, I found it. I need this expression: sum("area",group_by:="GEN") Commented Dec 8, 2020 at 14:58

1 Answer 1


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 and acknowledge you have read our privacy policy.

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