Grouping Customers

I found this topic here: Tree structures don’t filter data as per User’s Expectations FRAPPE Issue or is it by Design? - Developers - ERPNext Forum

And that is exactly the problem, but they didn’t really state a solution. So I guess your solution is a possibility, but then creates another issue.