Hi,
I have a collection with the following fields
| Fabric | Cut Qty | Cut Length |
| Main | 5 | 185 |
| Main | 2 | 181 |
| Main | 2 | 181 |
| Main | 3 | 185 |
| Milton | 4 | 238.5 |
I want to get the unique data considering fabric and cut length. Then sum the Cut Qty.
Output I am trying to achieve.
| Fabric | Cut Qty | Cut Length |
| Main | 8 | 185 |
| Main | 4 | 181 |
| Milton | 4 | 238.5 |
I have searched and am really struggling to grasp the concept. I know what I have below is long, but here is what I tried.
ClearCollect(combine_fabric,AddColumns(Fabric_Cuts,"Unique_Col",Fabric & Cut_Length));
ClearCollect(combine_fabric2,AddColumns(GroupBy(combine_fabric,"Unique_Col","NameGroup"),"total_cuts",Sum(NameGroup.Cut_Qty,Cut_Qty)));
Any help is greatly appreciated.