Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Data Warehousing / November 2007

Tip: Looking for answers? Try searching our database.

Parent-child dimension

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Davide Leli - 05 Nov 2007 10:48 GMT
I'm trying to connect a parent-child dimension to my fact table.
I would like to browse cube measure (sold items quantity) through the
dimension "Groups" representing items family (tree structure).

Here are the tables:

Fact table (items sold with quantity):
------------------
IdItem;Quantity
1;5
2;2
3;1
1;6
3;8
------------------

Dimension table (parent-child tree representing groups item):
------------------
IdGroup;GroupName;IdParent;IdItem
1;AAA;-1;-1
2;BBB;1;-1
3;CCC;1;-1
4;O1;2;1
5;O2;2;2
6;O3;3;3
------------------

If I connect dimension to fact table with a regular relation (on IdItem
attribute of each table) and browse cube, I obtain for each node the
same quantity (22)

AAA  (22)
-BBB (22)
--O1 (22)
--O2 (22)
-CCC (22)
--O3 (22)

I would like to obtain this result:

AAA  (22)
-BBB (13)
--O1 (11)
--O2 (2)
-CCC (9)
--O3 (9)

If I use a "reference relation" with a middle table it's ok...
but I don't understand the difference!!!!!!

Can someone help me?
thanks
Lit - 05 Nov 2007 11:16 GMT
Ooops! I'm using Analysis Services 2005 :-)

> I'm trying to connect a parent-child dimension to my fact table.
> I would like to browse cube measure (sold items quantity) through the
[quoted text clipped - 48 lines]
> Can someone help me?
> thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.