One option is to create new grouping column with something like
Col Cumulative Sum(1, :id)
jthi_3-1671207892330.png
after this you can split the table
jthi_0-1671207782024.png
and end up with
jthi_1-1671207790056.png
then you can move the columns around
jthi_2-1671207877254.png
-Jarmo