COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: mark123 on 13 Jan 2016 01:49:01 PM

Title: Framework Manager Joins not reflecting in Packages while creating reports
Post by: mark123 on 13 Jan 2016 01:49:01 PM
Hi All,

While creating reports i am not getting the data as per the joins created in Fm. It is showing the whole data from the tables without joining data the data from the two tables. I have created joins in Database layer and created query subjects in Business Layer and created shortcuts of them and added to presentation layer in FM.

Thanks
Title: Re: Framework Manager Joins not reflecting in Packages while creating reports
Post by: bdbits on 13 Jan 2016 05:41:01 PM
By "whole data" you mean the cross-product of the two tables, i.e. every row in table 1 joined to every row in table 2?
Have you tried running a similar test query in FM and did it work there?
What does the generated SQL look like - does it have a join as you would expect from your model?
Title: Re: Framework Manager Joins not reflecting in Packages while creating reports
Post by: Lynn on 14 Jan 2016 02:23:49 AM
Could it be that what you include in the report doesn't need the join in order to satisfy the request? Minimized SQL in action perhaps?

The SQL that gets generated will only use the join when it is needed to satisfy the layout. If you choose a field from table A only it will query table A only. If you choose a field from table A and also a field from table B it will include the join.
Title: Re: Framework Manager Joins not reflecting in Packages while creating reports
Post by: MFGF on 14 Jan 2016 03:16:03 AM
It might also be that you are getting an unwanted query split - ie generating a stitch query where it is inappropriate to do so. Did you follow best-practice modelling guidelines when creating the relationships and cardinalities within your model?

MF.