Percentage of 2 differents types of answers

im a using Grafana v9.5.5 , windows

I’m trying to display a “XX%” of fail over succes from differents status (“error” or “succes”)

Using Stats, at first i tried simple operations :
2 queries to get differents metrics of random counts at first, using transform to add them and try to display only the result , couldnt got it to work , got NO DATA when trying to add them

using transform , i tried a binary operation, but it doesnt show in my stats pannel

Couldn’t see a proper result anywhere

expected that the expression $A + $B of two count would have only displayed the result of both

i’m kinda lost trying to add 2 numbers , so i really need help getting a % of that , here is what my logs looks like form elastic search

{ “status”:“Successful healthCheck”, “jobId”:“1”, } , or
{ “status”“Error during healthCheck”, “jobId”:“1”, }

in briev , i’d like something along the lines of
% Success to display = (Count of status=success) / (Total count of status for that ID) * 100

thanks a lot !