You can make a reference selector that is constrained by another. You can read more about how to do that here:
https://docs.mendix.com/refguide7/reference-selector/#constrained-by
Hey Nithyashree,
You can visit to the question below, There I have explained how to achieve your requirement,
https://forum.mendix.com/link/questions/119063
Let me know if you face any issues,
Hope it helps!