I'm trying to create a basic model using QGIS, the QGIS graphical modeler and the sextante toolbar. In part of the model, I need to select features based upon multiple attribute values (for example - A = 'value' OR A = 'another value'). The select by attribute algorithm provided by QGIS only allows you to enter a single value at a time - is there a simple tool/method to enter an expression to select multiple values from a dataset, and which can be incorporated in the graphical modeler?

1 Answer 1


Just to move this question from the Unanswered section - the Sextante plugin has been renamed to the Processing plugin.

And as of version 2.9.0, you can use the Select by expression tool (separately or within the graphic modeler) which allows you to select features based on the expression provided.

Select by expression

This can include multiple attribute values, for example:

"column_A" = 'X' OR "column_B" = 'Y'
  • This is exactly the tool I need. I have recently installed QGIS v. 2.18, but I do not see the "select by expression" option in my processing toolbox. How can I find it?
    – bwilkes
    Jul 11, 2017 at 14:55
  • 1
    @bwilkes - It should be made available. Exactly which QGIS 2.18 version are you using? Which algorithms are available to you? Also, make sure the "processing" folder is deleted in your .qgis2/python/plugins/ directory.
    – Joseph
    Jul 11, 2017 at 15:10
  • 1
    Deleting the folder in my plugins directory totally did the trick! Thank you so much!! I'm also getting an unrelated error message upon startup. I'm thinking my "upgrade" from 2.14 to 2.18 last week did not go smoothly... but that's probably a question for another thread.
    – bwilkes
    Jul 12, 2017 at 17:43
  • 1
    @bwilkes - Most welcome, glad you solved it! You could always do a reinstall and see if the error message goes away :)
    – Joseph
    Jul 13, 2017 at 9:26
  • 1
    update went smoothly, error message gone!
    – bwilkes
    Jul 25, 2017 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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