Percentage in Kibana visualization

i want to calculate the percentage of "pass" tests
i have a scripted filed that return 1 when a test is "pass"
at the moment i have a graph that shows the number of tests that ran( pass/fail/warning)
how can i change it from the count to show percentage of the "pass" in relation to the number of tests that ran?

Hi @Tzlil

welcome to the Kibana community.

Can you share a little bit more about the fields you have?
Do you have another field with the result string (as "pass" or else) where this scripted field is sourcing? Do you have also a build id to group by?

Bar vertical percentage in Lens visualization is not enough for you?