Hide taxonomy term from a view filter where the filter results are empty I have several nodes and several taxonomies, but only some nodes have taxonomy relationships.

My problem is that the taxonomy filter shows those terms too which don't have any node relationships at all, example:

So even if I don't have any nodes in &quot;Category 1&quot;, the term will show up in the filter.
Is there a way to remove those taxonomy terms from the filter which have no content associated to them?
In Views, there is an option to specify a relationship and to require that relationship. You can find it in your View's config page, under Advanced. Just add a relationship to your taxonomy vocabulary and check the option to require the relationship.
The screen shot below is from the Content view that ships with Drupal 8, which is a great example of how to define a required relationship.