I would go back to the source Dataset (assuming it is SQL) and add a Column_Number calculation which resets to 1 for each Order + Vendor combination, e.g.
ROW_NUMBER () OVER ( PARTITION BY Order , Vendor ORDER BY Line_Number ) AS Column_Number
Then I would edit the Column Group defintion to use that Column_Number column.