COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Captain on 04 Feb 2015 04:47:27 PM

Title: Creating Charts through Custom SQL Query
Post by: Captain on 04 Feb 2015 04:47:27 PM
I am using a custom SQL Query; all data items show up fine and works perfectly within a list. However, there is no data when I drag the data items from that query into a chart series/measure. It's apparent charts do not behave like like a list when it comes to custom SQL query. Does anyone have any advice?

Thank you.
Title: Re: Creating Charts through Custom SQL Query
Post by: bdbits on 05 Feb 2015 08:45:47 AM
I have almost never found a need for custom SQL queries, but the data items from such a query should work fine. Perhaps you are not assigning proper data items to the correct parts of the graph. It might be useful if you could attach a report spec demonstrating your issue.
Title: Re: Creating Charts through Custom SQL Query
Post by: Captain on 05 Feb 2015 01:44:25 PM
I have found the solution: properly assigning the aggregation function on each individual data item measure seems to have solved the problem.

PS: You will need custom SQL queries when you want to join data across multiple DBs, for example.
Title: Re: Creating Charts through Custom SQL Query
Post by: MFGF on 06 Feb 2015 03:55:54 AM
Quote from: Captain on 05 Feb 2015 01:44:25 PM
PS: You will need custom SQL queries when you want to join data across multiple DBs, for example.

Hi,

What led you to that assumption? Describing data from multiple databases (including how it links together) is all part of the standard functionality in Framework Manager. Cognos 10 is designed to handle this easily in the metadata layer. Why do you believe it requires custom SQL within a report?

MF.
Title: Re: Creating Charts through Custom SQL Query
Post by: MPritchard55 on 02 Dec 2015 01:27:45 PM
Captain -

I am experiencing this problem.  Can you remember what you had to assign the aggregation function to?  Mine are defaulted to 'Automatic'.  I've tried changing to none, total, etc and my graph still won't render.