Display max rrd values using Graphite with Grafana

Getting crazy trying to display max rrd values in Grafana. So far we’ve always used Graphite to display RRD values in Grafana. And it always been avg values. But now i need to display max values. I’m trying to modify the query by adding consolidate by (max) function to Grafana query. But the values is still AVG ones…

Thanks for any input