the main file is from excel. I used groupBy to group them by itemname (a,b,c,d) and save it on listDT {list}
I have a condition that I need to get the 2 group with highest datarow and remove them on the original list of datatable. Save that datatable with the remaining 2 and create another list of datatable to save the group we removed.
so in the final solution the groupings are the following:
Adding to What @ppr has mentioned, if you want to remove those Two Grps from the List then you can use the Below Expression and assign it back to the same variable: