If you want to change folders and folder-formats (which include the filters) at the same time, it's best to use either a Layout or a Style.
(Layouts can contain multiple windows. Styles affect just one window.)
That is unless you always want the same things to be filtered out in particular folders, or by default. If you always want it then you can do it using Folder Formats so that it happens automatically whenever you go to particular folders.