The last solution proposed in this answer is another example of using macro parameters inside a filter: