Book a Demo

Author Topic: EA 11 Chart query  (Read 2931 times)

PHS

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
EA 11 Chart query
« on: May 13, 2014, 12:05:14 am »
Hi,

I'd like to make a bar chart, using SQL query. When I try to use one of my querys, I got error messsage

Unable to save Chart Data, invalid Custom SQL. The field Series must be used in the select statement

is there any documentation how to write Custom SQL query that can be used in charts ? I couldn't find this.

Regards,
Piotr

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: EA 11 Chart query
« Reply #1 on: May 13, 2014, 08:41:38 am »
What is your SQL Query? The error message indicates that you have not used the alias Series; this is a mandatory part of the SQL Query statement, as documented in the integrated Help (Reporting > Charts > Standard Chart Data > Custom Query).

Your Query should resemble this:

Select t_object.Status AS Series, t_object.Author AS Groupname from t_object

which produces a chart of elements of each Status, further grouped by element Author.
Best Regards, Roy

PHS

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: EA 11 Chart query
« Reply #2 on: May 13, 2014, 05:14:21 pm »
Thanks a lot ! I should have checked integrated help first ;)