Perspective Charts

I want to show the average data of one column from SQL in perspective by using charts.
I have tried to use the SQL AVG function in named query but still I am getting error.

You need to post your SQL and the error message for anyone to help you. Use the </> code formatting button to preserve code indentation and apply syntax highlighting.