I have this use case where I need to segment a datatable but the challenge is grouping them not randomly. No same item name should be grouped or the process will fail. I know how to segment but is there any way to make sure no 2 items have the same id? Is there a script for that? Thanks
First you can get your whole table datatable. Then you import the groups you want into the new tables by using the filter datatable. Finally, you write these tables in excel with new sheet names.
Hi @MY, thank you for your reply. However, I will not know what items are in the excel and there will be thousands of item in it. My initial thought is to get the unique value from the original excel then try grouping based on that. I am just thinking if there is another way and efficient way like datatable segmentation
Thank you for this, I think this is what I am looking for. However, can you let me know how I can retrieve item from the group one by one? Sorry, I am not familiar much with datatable and the best I tried before is simple filter only.
additional question though, is there any way we can prevent having only one pair at the end? I ran the script on a live excel data and after a while I was left with 30+ (random) item with no pair.
just create some sample data set where we have discrete identifiable values in the cols (e.g. Material) for more occurring Item values. We will have a look at it. Currently, we cannot derive the full rule. Also, it looks more like combining rows into different pairs
Book1.xlsx (8.8 KB)
Thank you, appreciate your help in this. I added a test sample. Goal is to partner/group the item with other item with different item name and as much as possible not have a solo item remaining without a group.
thanks for the feedback / sample Excel. Refering to your origin topic description / request from most top this request looks like a different case. We would recommend to help other researchers by scoping 1 Topic = 1 case. It will be easier for them to find solutions for their similar case.
Have a look on the Join datatable activitiy and try some steps when setting the join operation to
!= In case you need further help on just open a new topic and we will pick it up from there. Maybe you can also provide the expected output sample. Thanks