dbTalk Databases Forums  

Dimension related to Fact Table multiple times

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


Discuss Dimension related to Fact Table multiple times in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
james@roadhouse.com.au
 
Posts: n/a

Default Dimension related to Fact Table multiple times - 02-08-2006 , 11:50 PM






Hello,

I have a problem I need some assistance with. Firstly, I appoligise for
the terms used. I am reasonalbly new to this.

The issue is that the Group Dimension has multiple enteries of the
Machine dimension's key. ie. Machine 1 is related to Group 1, Group 2
and Group 4, etc. I have set this up as a regular relationship via the
fact table. However, when I pivot against the Group dimension, it only
picks up the first related entry of the group dimension, and ignores
all other enteries in the table. My question is how do I structure the
data and dimensions to work correctly for this type of relationship?

Machine Group
Quote:
|
|
\/ \/
Profit/Loss Measure (MachineKey)

ProfitLossFactTable
-----------------------------
RecordKey MachineKey PLTotal
1 1 100.00

GroupTable
-----------------
RecordKey MachineKey GroupName
1 1 Group 1
2 1 Group 2
3 1 Group 4

I expect a pivot to show something like this:
Group 1 100.00
Group 2 100.00
Group 4 100.00

Thanks for looking at this.

Regards,
James



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Dimension related to Fact Table multiple times - 02-09-2006 , 12:13 AM






Hi James,

If you can use AS 2005, this MSDN paper should help you:

http://msdn.microsoft.com/library/de.../en-us/dnsql90
/html/sql2k5_mmdiminas.asp
Quote:
Many-to-Many Dimensions in Analysis Services 2005
Richard Tkachuk
Microsoft Corporation

June 2005

Applies to:

Microsoft SQL Server 2005 Analysis Services

Summary: See an example of using the Many-to-Many dimension in SQL
Server 2005 Analysis Services to analyze sales data, and get ideas for
other uses such as treating medical conditions, software testing, and
more.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.