I want to filter features from a polygon shapefile in QGIS using a list of numbers that occur only in one column of the attribute table.

For example: My attribute table has 20 columns. One of them is named "telephones". I have a txt file that only contains one telephone number per row. How can I filter all features that assign to each number?

1 Answer 1


You are looking to join shapefile to txt file. You should add your .shp and .txt files to QGIS and join them based on the filter field. You can follow tutorial at https://tilemill-project.github.io/tilemill/docs/guides/joining-data/.

  • "feature" in ('45','87','988',4687','444') This is what I was looking for
    – Ntelo
    Jun 15, 2018 at 9:59

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.