I have done multiple examples found online, but still I get a null record for the aggregated sum variable. The code makes sense. But for some reason, when I add the collection to the gallery visual, I get the correct groups (the item number), but the 'Sum of qty' added column/aggregated field is coming back empty:
ClearCollect(
collCustomerSales,
DropColumns(
AddColumns(
GroupBy(myDatasource,"item_no","item_desc","grp2"),
"Sum of qty",Sum(grp2,qty)
),
"grp2"
)
);