Create Selection Based Filters

One solution is described in that node.
It worked fine for me, thanks to templates.

Thanks