Hi,
I saw this https://localhost:3000/t/expression-query-in-stat-panel/57547
which talks about expression query in Stat panel.
And I’m doing almost the same case with using Expression function.
My data source is from Cloudwatch and I need to calculate the success rate of invoking API, so I had two queries, one was the number of calling API, and the other was the number of successfully executing the API, therefore I used Expression function to division two numbers to calculate the successful rate.
but there’s the problem, my two queries refId were named A and B, so I wrote “$B/$A*100” and it was not work, even I wrote only ‘$A’ it was wrong either.
I’ve followed the official document->Write expression queries | Grafana documentation
But I couldn’t figure out why It was wrong!
This pic shows that only two queries are work!
You can see the pic above and it occurred error when I add new Expression.
Is syntax like “$B/$A*100” wrong? Or it can’t get the value of refId A and refId B?