For achieving this requirement, you can visit to my blog,
There I have explained how to implement a dynamic filter,
You can visit the blog by clicking the link below,
Let me know if you face any issues,
Hope it helps!!!
Hi Bertran Ziyadov,
You can follow the blog mentioned by Rishabh Shandilya, but you should play around with that with some tweaking.
Hope this helps!!