You can use an Router transformation in a dynamic mapping. You can configure dynamic ports in the transformation and reference the generated ports in the group filter condition.
When you use a dynamic port in the group filter condition, the dynamic port might contain more than one generated port. The group filter condition expands to include each generated port. Each generated port must be a valid type for the expression.
You can parameterize the group filter condition. Use an expression type parameter to specify the filter.