I’m using this activity, remove data column, it seems that the excess column is not working

How can I remove the excess column dynamically, like what if the excess is 3 columns or 4 moving forward?
Thank you.
I’m using this activity, remove data column, it seems that the excess column is not working

How can I remove the excess column dynamically, like what if the excess is 3 columns or 4 moving forward?
Thank you.