I need to calculate error rate the forumula is countError/count
I have tried joining but kind of stuck what to do post that
count = from(bucket: "stress")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["application"] == "application name"
and r["_field"] == "count"
and r["transaction"] == "all")
|> sum(column: "_value")
countError = from(bucket: "stress")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["application"] == "application name"
and r["_field"] == "countError"
and r["transaction"] == "all")
|> sum(column: "_value")
join(
tables: {count,countError},
on: ["_value"]
)