Hi everyone!Basic problem:Hierarchies with no Composite Keys roll up correctly, but for hierarchies with Composite keys all the values are the same - the total amount! I'm busy porting a Analysis Services 2000 cube to 2005 (Yes I know they are BOTH old, but it's a restriction at the client, unfortunately.) It worked fine in 2000, but not in 2005.I'm using Visual Studio 2008, with SSAS 2005.My Dimension Table has the following columns:[font="Courier New"]AccountManagerSalesmanGroupL1GroupL2CustomerStoreStoreSalesmanAccount (for the Attribute Key)[/font]There's no relationship between the AccountManager and the Salesman. The AccountManager is determined by the type of store, the Salesman by the geographical location.Also, a store may have more than one Salesman, or Account Manager associated with it. I have the following attributes defined: [b]For the Customer Hierarchy:[/b][font="Courier New"]GroupL1GroupL2CustomerStore[/font][b]For the AccountManager Hierarchy:[/b][font="Courier New"]AccountManagerAccGroupL1 (KeyColumns -> GroupL1 and AccountManager)AccGroupL2 (KeyColumns -> GroupL2 and AccountManager)AccCustomer (KeyColumns -> Customer and AccountManager)AccStore (KeyColumns -> Store and AccountManager)[/font][b]For the Salesman Hierarchy:[/b][font="Courier New"]SalesmanSalGroupL1 (KeyColumns -> GroupL1 and Salesman)SalGroupL2 (KeyColumns -> GroupL2 and Salesman)SalCustomer (KeyColumns -> Customer and Salesman)SalStore (KeyColumns -> Store and Salesman)[/font](I rename them to Store in the Hierarchies, so that I don't get this ugly AccStore and SalStore.)[b]The Relationships are as follows:[/b][font="Courier New"]StoreSalesmanAccount -> Store -> Customer -> GroupL2 -> GroupL1StoreSalesmanAccount -> SalStore -> SalCustomer -> SalGroupL2 -> SalGroupL1 -> SalesmanStoreSalesmanAccount -> AccStore -> AccCustomer -> AccGroupL2 -> AccGroupL1 -> AccountManager[/font]So for the Customer Hierarchy I get the following values:[b]Customer[/b][font="Courier New"]Group1 = 10---- Group1a = 6---- Group1b = 3---- Group1c = 1Group2 = 5Group3 = 12Group4 = 4[/font][b]Grand Total = 31[/b]For the Hierarchies with Composite Keys I get:[b]AccountManager[/b][font="Courier New"]Account1 = 31---- Group1 = 31---- Group2 = 31---- Group3 = 31---- Group4 = 31Account2 = 31Account3 = 31[/font][b]Grand Total = 31[/b]And the same with the SalesmanDrilling Down into the Hierarchy, every single value is 31!So, Account1 is 31, all the members at GroupL1 (the level below Account1) have values of 31. All the leaf members have values of 31.Help please, I'm obviously missing something simple somewhere... but don't know what it is.
↧