Assume we have the following taxonomy hierarchy.
- Lemon Tea
In the above view, what you need is a parent term relationship and set this in a term filter. if this term filter is empty, that means term without a parent term would be selected(Parent term only). On the other hand, set the term filter to not empty in order to get all children terms(Children term only).