COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: bloggerman on 05 Aug 2010 09:35:11 AM

Title: Retrieval of data from facts when one dimension is not conformed
Post by: bloggerman on 05 Aug 2010 09:35:11 AM
Could you help me with the below

Say i have 2 facts . Best practice is to retrieve data from the two facts through conformed dimensions. How would we handle it if we have one dimension with one of the facts that is not common with the others. Say For e.g.

fact1 has Dim 1 Dime 2 as dimensions
Fact2 has Dim1 as dimensions

Can i still pull data from fact 1 and fact2 in a query and get reliable results. Or do i need to tweak it in a certain way?
Title: Re: Retrieval of data from facts when one dimension is not conformed
Post by: RudiHendrix on 06 Aug 2010 12:44:00 AM
If your database layer is modeled properly that should not be a problem. So, link Fact 1 to Dim 1 and Dim 2 and link Fact 2 to only Dim 1.

If a user starts querying it I would expect data if you pull in measures from both facts and display them against Dim 1. If you pull in Dim 2 as well the measures from Fact 2 will just disappear.

If I have some time left I will test it on my development environment and let you know.
Title: Re: Retrieval of data from facts when one dimension is not conformed
Post by: RudiHendrix on 06 Aug 2010 08:56:39 AM
I've tried it and it doesn't work as I mentioned.

If I put in both dimensions and the fact that is valid against both dimensions everything is fine.
If I put in the fact that is valid for 1 dimension the value from that one dimension gets displayed twice.

If I remove the dimension that is not valid for both facts, but just for 1 fact it shows that first fact correct. In the next field it shows the total of the measure of the other fact in every row.

This is still happening when I have set the dimension scope correctly.

Sorry it didn't work out as hoped.
Title: Re: Retrieval of data from facts when one dimension is not conformed
Post by: tupac_rd on 06 Aug 2010 10:32:38 AM
does this help
http://www.ibm.com/developerworks/data/library/cognos/page350.html
Title: Re: Retrieval of data from facts when one dimension is not conformed
Post by: bloggerman on 17 Aug 2010 02:30:05 PM
Thanks. I will check it out and see if it works.