I'm inexperienced with SSAS, and I am just ready to beat my head against the wall...I have a CustomerOrder fact table with the following relevant columns..factCustomerOrderKey ( identity )ShipToCustomerKey -- FKBillToCustomerKey -- FKOrderNumberLineItemNumber...I'm using this table as a degenerate dimensions, and I cant get the hierarchies straight.I want to be able to have a hierarchy for BillTo Customers that would look like this:BillToCustomerShipToCustomer ( the relation between BillTo and ShipTo is usually 1:1, can be 1:N )OrderNumberLineItemNumber ( with related LineItem Attributes )When I define the attribute relationships, it looks like this:Fact -- > OrderNumber - > ShipToCustomer - > BillToCustomer[b]Problem 1[/b]I keep getting duplicate key errors when I try to process the dimension. [b]At a generic level, what's the correct method for setting the key columns to avoid the duplicate keys?[/b] I'm thinking it should be like this:BillToCustomer -- single columnShipToCustomer -- BillTo and ShipToOrderNumber -- ShipTo and OrderNumberI need some expertise and guidance... please[b]Problem 2[/b]Can I also have a similar hierarchy that leaves out the BillToCustomer? It would look like this:ShipToCustomerOrderNumberLineItemNumberIn general -- what's the best way to diagnose problems like this and design to avoid them??ANY advice, knowledge, or even links to suggested reading would be very helpful
↧