If you have a field to show which categories are active, just Do a search for Categories (active = yes):format as text
Do a search for Categories (active = yes):format as text