Apply a query to layers so that only some features appear in your map
You can create a single filter for multiple layers from different data sources, as long as they share the property you are filtering on. For example, if you have an SDF layer of parcels, a SHP layer of parks, and an Oracle layer of hospitals, and they all share a STREET_NAME property, you can filter by street name. You can filter by location for any layers that overlap in space.
You can also create a filter for a group, as long as all the layers in that group are feature layers (not drawing layers) and all the feature layers contain features (that is, none of them are empty).