Instead of using code you can add filters to your datasets.
- right click your dataset.
- open settings
- Scroll down to add filter - select field → equal to → select user element → chose the right dropdown element.
repeat this for all dropdowns.
now your dataset should filter depending on what is selected.
Kind regards,
Kristof.