Okay, what you are looking for will definitely be possible, although without a deeper understanding of how your app is setup I can’t really provide specific advice.
Here is another approach that I often use for dynamic filtering, which might be applicable in your case: