I don’t think I know how to do this, I am afraid
Have a look at this, I am not sure if it is what you want - it’s about filtering the query in the pop-ups