'Kibana subtract metric from a number

is it possible to subtract a number that metric outputs from predefined number in Kibana?

Eg I have a number that one of the metric produces (num of events), and I would need a way to subtract predefined number out of that metric (manual input), how to achieve that?



Solution 1:[1]

You can use formulas in lens to subtract numbers from metric outputs.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nathan Reese