Kibana json input filter

Hi, I wanna create vertical bar chart with 2 bars.
Both of them are sum of one field (Duration) but based on a condition on another field.
one bar is sum of duration when
pr

and another when

not_pr

now I think I should add some condition.

metric
What should I add in json field in metrics to separate them ?
Thanx a lot

You need to add the Filters on the X axis, and then your Y axis would be just the Sum. Trying to replicate your use case using the sample flights data, I wanted to sum the average price on a chart with two bars, for two specific carriers.

Is this what you want to achieve?

1 Like