Comparing 2 sum metric aggregations

Is it possible to compare two metric aggregations - both return the sum of a field.
Both aggregations are performed on the same field, but at different time intervals using the bool and range query.

For example, if the value obtained by the aggregation for sum of the field on a specific day is greater than the sum of that same field on another day, I want to print a warning message.

How can I do this? Any help is appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.