Thanks @Anastasiia but I’m not counting the rows in filtered results, I’, counting the total in “Amount” field of each datasets. Sorry I wasn’t clear.
I get already the result I needed in my 2 queries, the total Amount. However I can’t add the two results.
query1 for collectionA - > result : collectionATotalAmount
query2 for collectionB - > result : collectionBTotalAmount
My problem is when I add “collectionATotalAmount” and “collectionBTotalAmount” result is “NaM”. I can’t add or subtract.
In console, I expected this result :
displays :
collectionATotalAmount
collectionBTotalAmount
TotalSumOfTwoCollectionsAmount
Ex:
1000
500
1500
However, this is what I got.
NaM
1000
500
It’s like it adds already even if the two queries haven’t calculated the result yet, that’s why its “NaM”