Bar chart, group by field - Application insights

Hello!

I am currently using grafana with Application insights. This is my query:

requests
| summarize count() by name, success

I would like to display a barchart grouped by name - but this is what I get instead.

How can I aggregate by name?

Apologies if this is a silly question, I am pretty new to grafana!

Thanks a lot
Annio

I actually found the solution in this other post:

Bar chart Grouped grafana 8 - Grafana - Grafana Labs Community Forums

I fixed it by projecting two “countif”