How to retrieve the average value of a set query

Visualization is using the Graph panel.
a.b.c,d 4 queries are in use.
I want to find the average of the above a,b,c,d queries
can check the avg and max using the Legend tab
How to average 4 queries?

what version of grafana are you using? You could probably accomplish this with a sequence of transformations: