Calculation of a consumption based on a level tag

Discussion created by esancha on Jan 23, 2020
Latest reply on Jan 24, 2020 by esancha

How can I - if possible - using Analytics, calculate the consumption of a liquid extracted from a tank that empties and fills several times in the period to be measured? The only tag I have is the tank level tag.
The single way I know how to do it is by going through the level data in a loop, comparing them with the previous and keeping the maximum and minimum, but Analytics does not allow me to use loops, or at least I don't see how to do it.


Thanks in advance.


Emilio Sancha