us the filters in the datagrid instead?
https://docs.mendix.com/appstore/modules/data-grid-2/#filters
Or this article would be of help
https://medium.com/mendix/create-your-own-way-of-filter-by-npe-non-persistant-entity-and-microflow-4ffd11e52fb0