As I specified, I need to split the Data Table but I also want to avoid having the same category in the both Data Tables.
Example :

I have 9 rows so the first data table should contain 5 rows and the second should contain 4, but I don’t want to have the “BBB” category within the both data tables, I need to get all the rows until the category changes; so there should be 6 rows for the first data table and 3 rows for the secon one.