Filters of dataset not working any more

What you can do is just add another dataset configured to use the same collection, and connect the table to that new dataset. That way you don’t need custom code. Will that work for you?