dbTalk Databases Forums  

Multiple count of records when I have a many to many relationship

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss Multiple count of records when I have a many to many relationship in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Datasort
 
Posts: n/a

Default Multiple count of records when I have a many to many relationship - 10-20-2005 , 12:31 PM






I have a fact table that has a three dimensional hierarchy set up as a shared
dimension

Dept
Class
SubClass


The Dept/Class is a many to many relationship. The class/subclass is a many
to many relationship. As a result, I am not about to assume a class given a
subclass. I have link tables that link the Dept/Class and Class/subclass
relationships.

When I use the link table in the cube designer then my calculation will not
work because in am getting multiple counts of the same record. If I do not
use the link table then I can’t “Drill” down.

Lastly, I like the shared dimension of dept/class/subclass because I want to
see if there is “missing” subclass data.

Tables:

Fact Table (Dept, Class, Subclass, Items Purchased)

Dept (Dept ID, DeptName)

Class( ClassID, ClassName)
Link_Dept_Class( DeptID, ClassID) Many-To-Many

SubClass (SubClassID, SubClassName)
Link_Class_SubClass ( ClassID, SubClassID) Many-To-Many



Can anyone tell me how I should link the tables in the cube editor?


Thanks in advance.

--
Stewart Rogers
DataSort Software, L.C.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.