Is it possible to use a parameter to define which column to be used in the VA report.?

For example:
If (‘Column01’p=’STATUS_202201’)
return ‘STATUS_202201’n
Else ‘STATUS_202202’n

if we define in this way, the columns names have to be fixed to 2 only. But how should we handle if those columns will be dymincally increased (e.g. STATUS_202301, STATUS_202302 ....., STATUS_202401, STATUS_202402 etc).