Hello,
I'm sorry, but the problem isn't very clear. You mention that you have created a filter and it works. What are you doing after this (that causes the dropdowns to stop working)? I would suggest restating the problem with additional details to entice more responses.
If you need information on this, it is commonly called "cascading dropdowns". A forum or Google search will yield various tutorials on this.
Good luck!