COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Framework Manager => Topic started by: ww55d on 28 Dec 2015 09:47:55 AM

Title: Reusing Lookup tables, multiple fields
Post by: ww55d on 28 Dec 2015 09:47:55 AM
I'm fairly new to Framework, but have experience in other platforms.. The model I'm currently working on presents an interesting challenge i'm not sure how to approach..


Fact Table:    Events
Dimension Tables:    Codes, Entity

relationships:
events.cause_code = codes.code_id
events.department_code = codes.code_id
events.event_type_code = codes.code_id
...
...
events.division_entity = entity.entity_id
events.facility_entity = entity.entity_id

I'm going based on the Database / Relationship / Business Layer framework format..

Everything looks as it should when I'm bringing in fields from the entity and events table.. However when I'm faced with a prompt, it wants to bring back everything from the Codes.code_id table, without evaluating its relationship to Event.. is there a way to get it to force the join between Event and Codes or Event and Entity?

ps.. There are roughly 12 code lookups per event and 8 entity lookups.

example attached.
Title: Re: Reusing Lookup tables, multiple fields
Post by: bdbits on 28 Dec 2015 10:25:53 AM
Going to the lower right outside the screenshot, are those also going to the codes table? It looks like the cardinalities are reversed.
Title: Re: Reusing Lookup tables, multiple fields
Post by: ww55d on 28 Dec 2015 10:36:24 AM
Good eye.. Those go to two other tables.

One was indeed backwards.. event -- calendar

One is correct.. each event can have multiple persons involved..



Thanks

Quote from: bdbits on 28 Dec 2015 10:25:53 AM
Going to the lower right outside the screenshot, are those also going to the codes table? It looks like the cardinalities are reversed.
Title: Re: Reusing Lookup tables, multiple fields
Post by: bdbits on 28 Dec 2015 01:10:23 PM
Glad I could guess right this time.  8)

Have a great day.