Hello community, we are trying to obtain the difference of a level sensor (consumption), however when using the formula: TagVal('Level','*-5m') - TagVal('Level','*') calculation results are converted to 0 almost every 5 min.


AF formula.jpg
AF Formula


PI Vision Calculations.jpg
PI Vision Formula

To compare, we have tried the same formula in PI Vision, obtaining the desired result


PI AF vs PI Vision.jpg
after backfilling, the values obtained in PI AF are similar to those obtained in PI Vision Calculations