Unfortunately, not all layer types support filtering. Only layers defined from map services, either hosted in ArcGIS Online or on ArcGIS Server. If you have a subscription to ArcGIS Online, you would instead add your shapefile as an item to your My Content, and publish it as a service too. Then add the hosted service to your map and you'll be able to filter it.
Thanks,
Mike