Filtering repeating group by age

I want to make a dropdown that filters companies by age (e.g. under a year, from 1-5 years, etc.) but the age of the companies is specified for example 2023 or 2024, etc. How can this be done?

I would use an expression that will output the years you want based on a given input.

If you have a dropdown with a friendly named options (under a year, 1-5 years etc) then based on that selection an expression calculates the given dates based on the current date and time.

what filter should I set in repeating group with companie?