![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a GroupsAndProducts dimension with following characteristics: 1. 4 attributes (GroupID, ProductID, GroupName, and ProductName). 2. Each group can have multiple products and each products can be in multiple groups. 3. Primary key - (GroupID + ProductID). 4. Hierarchy - (GroupID --> ProductID). 5. Linked with Sales fact table through ProductID (which is not its primary key). The requirement is to find out the sales for each group. This is working fine in SQL 2000 but SQL 2005 is giving errors. The sales of each group is shown the total sales in the fact table instead of aggregating the sales of only those products that are under it. When the group is drill down to product level, the sales for each product is shown right. Any help will be very much appreciated. Thanks Mahesh *** Sent via Developersdex http://www.developersdex.com *** |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |