I am pushing tokens that contain the label "smallItemQty" with a numeric value to a list.
I want to pull from the list 1 token with the sum of the value of all tokens with that, resulting in 1 token labeled "totalSmallItemQty".
I tried "select SUM (token.smallItemQty) AS totalSmallItemQty" as a query but wth no luck.
I also tried adding the values with setting a variable and using statistical collection but I could not get that to work either plus it's not my preferred option since I want to do additional things with the summed value using the token label value.
I did not try a loop yet since I figured a simple SUM query in a pull should do the trick (The pushed values will be coming in at a specific moment and not continuously. ).