I want to make a variable column name to move payments to position of the desired period. Part i wanna change is
concat(\'payment.[\',(p.[Period]-1),\']\')