Division of 2 sum-series in single-stat (graphite)

I want to produce a single stat representing my percentage of failed requests.

Each used in a single stat display, I have:

#A: sum series showing number of failed requests last week
#B: sum series showing number of total requests last week

I want to produce a single stat giving me a percentage of #A/#B. For example, if #A is 10 and #B is 50, I want a single stat of .2.

I’ve tried using divideSeries but it doesn’t appear to be applicable in this context.

Add query C that reads divideSeries(#A, #B)

If I do that, will it average the result of the division for each data point, or will it first add all values and then perform the division?