dbTalk Databases Forums  

Parent Child Dimension

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


Discuss Parent Child Dimension in the microsoft.public.sqlserver.olap forum.



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

Default Parent Child Dimension - 03-13-2006 , 06:52 PM






I have a fact table with three columns:

Date
Amount
AdPlacementID

Our hierarchy looks like this:

BusinessGroup (parent child)
SalesPerson
Customer
AdPlacementID


I need a parent child dimension off of the BusinessGroup table, however I'm
having trouble getting at it.

I see two separate dimensions:

1. SalesPerson -> Customer -> AdPlacementID
2. BusinessGroup

I'd love to combine them into a single dimension called "sales", however
that doesn't seem possible. Separating them into two dimensions work only if
I include BusinessGroup into the fact table view.

True? Any other options?



Reply With Quote
  #2  
Old   
Vladimir Chtepa
 
Posts: n/a

Default Re: Parent Child Dimension - 03-14-2006 , 08:33 AM






Hi

Yes it is true. You have to create two dimensions.
The parent-child dimension can based only on two related field of one table.

Vladimir Chtepa

"Jesse O" <jesperzz (AT) hotmail (DOT) com> schrieb im Newsbeitrag
news:%238tAhGwRGHA.3972 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
Quote:
I have a fact table with three columns:

Date
Amount
AdPlacementID

Our hierarchy looks like this:

BusinessGroup (parent child)
SalesPerson
Customer
AdPlacementID


I need a parent child dimension off of the BusinessGroup table, however
I'm having trouble getting at it.

I see two separate dimensions:

1. SalesPerson -> Customer -> AdPlacementID
2. BusinessGroup

I'd love to combine them into a single dimension called "sales", however
that doesn't seem possible. Separating them into two dimensions work only
if I include BusinessGroup into the fact table view.

True? Any other options?




Reply With Quote
  #3  
Old   
Jesse O
 
Posts: n/a

Default Re: Parent Child Dimension - 03-14-2006 , 12:57 PM



So I'll have to include the BusinessGroup in the fact table view?


"Vladimir Chtepa" <vc.nospam (AT) diacom-systemhaus (DOT) nospam.de> wrote

Quote:
Hi

Yes it is true. You have to create two dimensions.
The parent-child dimension can based only on two related field of one
table.

Vladimir Chtepa

"Jesse O" <jesperzz (AT) hotmail (DOT) com> schrieb im Newsbeitrag
news:%238tAhGwRGHA.3972 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have a fact table with three columns:

Date
Amount
AdPlacementID

Our hierarchy looks like this:

BusinessGroup (parent child)
SalesPerson
Customer
AdPlacementID


I need a parent child dimension off of the BusinessGroup table, however
I'm having trouble getting at it.

I see two separate dimensions:

1. SalesPerson -> Customer -> AdPlacementID
2. BusinessGroup

I'd love to combine them into a single dimension called "sales", however
that doesn't seem possible. Separating them into two dimensions work only
if I include BusinessGroup into the fact table view.

True? Any other options?






Reply With Quote
  #4  
Old   
Jesse O.
 
Posts: n/a

Default Re: Parent Child Dimension - 03-16-2006 , 05:20 PM



Anyone?

"Jesse O" <jesperzz (AT) hotmail (DOT) com> wrote

Quote:
So I'll have to include the BusinessGroup in the fact table view?


"Vladimir Chtepa" <vc.nospam (AT) diacom-systemhaus (DOT) nospam.de> wrote in message
news:u4wr6Q3RGHA.776 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi

Yes it is true. You have to create two dimensions.
The parent-child dimension can based only on two related field of one
table.

Vladimir Chtepa

"Jesse O" <jesperzz (AT) hotmail (DOT) com> schrieb im Newsbeitrag
news:%238tAhGwRGHA.3972 (AT) TK2MSFTNGP10 (DOT) phx.gbl...
I have a fact table with three columns:

Date
Amount
AdPlacementID

Our hierarchy looks like this:

BusinessGroup (parent child)
SalesPerson
Customer
AdPlacementID


I need a parent child dimension off of the BusinessGroup table, however
I'm having trouble getting at it.

I see two separate dimensions:

1. SalesPerson -> Customer -> AdPlacementID
2. BusinessGroup

I'd love to combine them into a single dimension called "sales", however
that doesn't seem possible. Separating them into two dimensions work
only if I include BusinessGroup into the fact table view.

True? Any other options?








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

Default Re: Parent Child Dimension - 03-16-2006 , 06:56 PM



Assuming that you're using AS 2205, you might be able to set up Business
Group as a Reference Dimension off the SalesPerson dimension, which will
presumably join to the fact table via AdPlacementID (if there is some
SalesPerson attribute that can join to the BusinessGroup P-C table).


- 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.