Forum Discussion
Hi @bojanvelevski ,
Thanks you. I tried with group by N(It does batching randomly), but I want to group them based on 3 fields say $A,$B,$C and then I want to do SUM on other field $D.Is there any such functionalities available in snaplogic using mapper?
Same thing applies to your use case, just the grouping is a little bit different and you’ll have to use Group by Fields
@bojanvelevski I was trying with this approach, but getting below error.
expression using : $.reduce((acc,curr)=> acc + curr.INSTALLCUQTY,0)
Also, getting ‘null’ as output for sum.- bojanvelevski3 years agoValued Contributor
Does it mean that your input is plain array literal and not an object array?
The error you’re receiving is telling you that the instance of “curr” - current is a BigDecimal. Can you provide a sample payload here?
Related Content
- 5 years ago
- 6 years ago