COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Framework Manager => Topic started by: c8guru on 06 Nov 2007 11:47:37 AM

Title: FM Shortcut Join Path
Post by: c8guru on 06 Nov 2007 11:47:37 AM
All,

Do you know how FM determines the join path when there are multiple shortcuts from the same object that are joined to different query subjects?  For example, I have a Dealer shortcut that is joined to an Account query subject and another Dealer shortcut that is joined to an Account_Balance query subject.  The reason for this is that we want the join from Dealer to Account when no balances are chosen but we want the join from Dealer to Account Balance when a balance is chosen so it doesn't have to include the Account table.

When you include query items from all three query subjects, Cognos decides whether to join the Dealer table to the Account table or the Dealer table to the Account_Balance table.
In our case, it joins Dealer to the Account_Balance table every time so there must be a definitive method for why it chooses this join versus creating a join to the Account table.

Thanks in advance,

Steve
Title: Re: FM Shortcut Join Path
Post by: MFGF on 06 Nov 2007 03:43:18 PM
Hi,

At a guess, it may be using the first alphabetical choice where the join path is ambiguous.  If you look at the names of the relationships, is this the case?

MF.
Title: Re: FM Shortcut Join Path
Post by: c8guru on 06 Nov 2007 03:55:38 PM
MF,

You are correct, Cognos is determining the join by alpha sort.  I've tested a number of scenarios and determined that this is the case.

Steve
Title: Re: FM Shortcut Join Path
Post by: MFGF on 06 Nov 2007 04:03:06 PM
Hi Steve,

Thanks for the update.  I guess now you need to revisit your modelling strategy and try to figure out a way to break apart the multiple join paths.  Not an easy task, but good luck!

Best regards,

MF.
Title: Re: FM Shortcut Join Path
Post by: c8guru on 07 Nov 2007 09:43:31 AM
MF,

Yes, I updated our modeling strategy but ran into another snag.  When multiple joins are involved, for some reason C8 defaults one of the joins to the dimension table instead of the fact.  I can't figure out the methodology it uses to determine which relationship will be chosen to join to the Account table instead of the Account Balance table.  Any ideas?
Steve