1

I have successfully count total features of Parcel layer by count aggregate function, next challenge with me is how to count all "5" or "4" values from "lut_zone" field as a label expression.

here

1 Answer 1

3

For this task you need to add a filter to the aggregate function, you can combine it with IN operator to add several values to the filterlist:

aggregate(@layer_name,'count',"lut_zone","lut_zone" IN (4,5))

This will give you the amount of features having a 4 or 5 as integer value in lut_zone. You can extent the IN list as you like.

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.