Only fetch categories that would give results

I have this view, in which you can select multiple filters in the sidebar. My problem is, atm I just get every filter posible, even if some of them wont give any results. What concept should I be googling for, to figure out how to only show filters that would actually have results when applied?
image.png
Was this page helpful?