Hi @yesid anacona ,
You can convert the global table data as string and write distribution inside the table cell.

Then you execute the string from the global table using executestring() command for the process time.
Pls see the attached model. I have created two item types in the model corresponding to A & B part types in your problem. A global variable is used to select the row from the global table based on the part. On exit trigger of the Queue has the logic for selecting the row. Finally under the process time code edit field you can see the command for accessing table string.
Table Data = reftable("GlobalTable1");
return executestring(Data[RowNumber][1]);
Regards,
Arun KR string-in-global-table.fsm