Forum Discussion
bojanvelevski
3 years agoValued Contributor
Same thing applies to your use case, just the grouping is a little bit different and you’ll have to use Group by Fields
nirupama
3 years agoNew Contributor II
@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?