Multiply each object attribute and display the sum of all

I have a object list [{product:banana, price: 10, quantity: 2}, {product:potato, price: 5, quantity: 2}]
I wan to so multiply the price by the quantity and then sum all values to have a total. seems pretty simple but require a combination of formulas that I dont know.

1 Like

for anyone wondering the best solution is using custom javascript module
a print of the exact funcion that solved this problem for me.

Montei um exemplo de como consegui, dá uma olhada aí…

https://www.playbook.com/s/pedrofarias/9SWAK77dB4Tkh1R1Tpb9rEfA