How we can use Math aggregation to access the value of series TSVB

Hey everyone,
I want to perform one calculation using series value: state1 - state2, but I don't know how to do it :sweat:

I need help please!!

I would propose to use Lens formula if your kibana version support them. It will be easy.

  1. Create a lens metric chart
  2. Add as a metric a formula which will look like that:
count(kql='field : state1 ') - count(kql='field : state2')

Unfortunately my version doesn't support this view , can I do this perform with TSVB ?

I am afraid you can't in TSVB.