Transformations randomly don't work properly

I tried, and it works. But it does not work as transformations, if query returns results from multiple measurements.
In transformation, data from multiple measurements can be combined to one value, and than do the math.
Using expression, it will do math with on every A value and every B value.