COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: Merri on 10 Feb 2006 02:22:51 PM

Title: Outer join from Parent to Child Tabular Model
Post by: Merri on 10 Feb 2006 02:22:51 PM
Has anyone had any success in creating an outer join from a parent tabular model to a child TM?
I created a filter in the parent TM in the form:
where child.ItemID is null or child.ItemID = parent.ItemID

which should accomplish an outer join, but returns only the inner join part.
When I created a filter in the form:
where parent.ItemID not in (child.ItemID) or parent.ItemID in (child.ItemID)

I get the correct result set, but of course the performance is horrible because this is doing a cross join.
A further issue is that even though the latter filter returns the correct result set when running the TM, it returns nothing to the report itself.

Has anyone struck this problem? Any ideas how to solve this? I'm using 1.1 MR2.

Title: Re: Outer join from Parent to Child Tabular Model
Post by: hksharma on 02 Mar 2006 09:20:41 PM
use tabular set with two tabular models with parent.itemid=child.itemid and parent.itemid not in child.itemid,union