@MaryspaceX, both work, you can use variables in the Filter Table Activity too, either way is fine.
If you have other people working with the project as well, who don´t understand long expressions then I personally would prefer activities since these are easier to understand.
Kind Regards