Visualize last two years per the parameter selection

I have the start date and end date parameters and
Wrt to end date I am controlling by date selection,
And in the filter, I want Start date to show results of last two years with corresponds to the
end date or year I have selected, is there anyways
we can do this?

Example client select (enddate) 2023 and start date
should automatically choose 2021 for my time period display

You can’t at this moment change a parameter based on another parameter.

I can mark this as a feature request.