4

What should I do if I want to select more than one feature using values?

For selecting a single feature, I enter an expression like this which works:

"LINK" = 28

Assume "LINK" as a field in the above example. Now what if I want to select more fields like that. I expect something like this:

"LINK" = [28, 56]

The above expression doesn't work (obviously). Is there a way to achieve this in QGIS?

1 Answer 1

4

Something like this should work: Use the IN (include) instead of = (equal)

LINK IN ('28','56')

Check https://docs.qgis.org/3.16/en/docs/user_manual/working_with_vector/functions_list.html#operators for more details

1
  • @BradNesom, many thanks for the edit. I should have included that.
    – Joseph
    Jul 31, 2014 at 13:57

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.