Is it possible to use xpath to calculate average? I'm using this expression to sum, and it works perfectly:
xpath(xml(outputs('JSON_Amount')), 'sum(/root/Amount)')
I wonder if there is a way to calculate average. I tried this, but it fails:
xpath(xml(outputs('JSON_Amount')), 'avg(/root/Amount)')
Thanks.