Dynamic parameter for filter

Hi, I have a question
I defined a single-select parameter of type int that accepts a number of years, for example 2021,2022,2023.
I defined both a control that is linked to this parameter and a filter that filters the years according to the user’s choice.
My problem is to create a parameter not manually but automatically by default - I did not see that there is such an option within the parameter. I want the user to see the most recent year by default in the filter dynamically and not a default value of a specific year. I would really appreciate the help, thanks in advance

Hi @jmetair,
With an integer parameter, you are correct that setting a dynamic default is not a current option.
A potential work around you could explore though would be to change your datafield type to ‘datetime’. Then you can try and setup the parameter to default to the beginning of this year. The only issue with this will be that you won’t be able to utilize a dropdown parameter.

Dynamic defaults for parameters would be a nice feature addition though so I’ll mark this as a feature request.

Thank you very much for the answer.