Hey Gokul, To achieve your requirement, you can go through my blog and in that blog,
https://medium.com/@rishabh.shandilya/create-your-own-way-of-filter-by-npe-non-persistant-entity-and-microflow-4ffd11e52fb0
and when you make the NPE, just make its association(1-*) with the entity which you want to filter. And the rest is the same.
Hope it helps!