QGIS attributes

How to sum all 'Luas_sawah' attributes in accordance with the 'Kabupaten' attributes?


In the field calculator, try sum() function (it can be found under Aggregates group).

 sum( "Luas_sawah", group_by:= "Kabupaten")

It returns the sum of "Luas_sawah" field according to the "Kabupaten" group.

enter image description here

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.