Are you entering the filter in the expression builder from the attribute table. If so, type
substring("DateSale") in ('2021', '2022', '2023', '2024') This should filter the table to show features with "DateSale"='2021' or '2022' or '2023' or '2024'. Oisin Get BlueMail for Android On 12 Jun 2024, 20:01, at 20:01, Jeremy via QGIS-User <qgis-user@lists.osgeo.org> wrote: >this explanation is opaque. can you explain how i use this in the query > >builder? is it a matter of adding an attribute that is calculated by >the >slicing? > >-- >This message would have been encrypted if you were using Delta Chat or >some other autocrypt-compatible email client. > >I am also reachable by Signal, Matrix, SMS, and telephone calls. > >Find more information here: >| Delta Chat | https://delta.chat/en/ | >| autocrypt | https://autocrypt.org/ | >| Signal | https://signal.org/en/ | >| Matrix | https://element.io/ | >| SMS & telephone | +18149337465 | > > >------------------------------------------------------------------------ > >_______________________________________________ >QGIS-User mailing list >QGIS-User@lists.osgeo.org >List info: https://lists.osgeo.org/mailman/listinfo/qgis-user >Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user