I need to find the difference between 2 columns (AV and BV) and show on a column of the table and on the next column to show the same difference as a percentage.
Now for the percentage it works perfectly fine when I do this:
(sum({AV}) - sum({BV})) / sum({AV})
But for the simple subtraction to show the difference is throwing an error on the visual called Your calculated field expression contains invalid syntax when I do this:
sum({AV})-sum({BV})
but if I do the same without sum like : {AV}-{BV} no error it works but the subtraction result is wrong
What am I doing wrong here to get the percentage difference correct but not the subtraction ?