Here is how to filter the planner to show selected teams.


Select filter.




Select the teams you want to include in the filter then select apply..




When you filter the planner by team, the role capacity in the resource status panel will exclude the capacity of the teams you have filtered out.