Kibana Visualization: average of the 99th percentile

Hello Kibana experts,

I am new to Elastic and been playing around with Kibana dashboard visualization. One thing I am trying to do is to create a dashboard to display the 99th percentile of total latency.

What I expect is to be able to pass the latency metric percentile from the first aggregation as input to the second average aggregation. But the visualization doesn't allow that.

So the question, is what I am trying to do supported by elastic and Kibana? and if yes, what am i doing wrong?

Thanks in advance