![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Could anyone please advice how to create a Customer dimension when my Fact table has Account Numbers that are not present in a Customer table itself? My Fact table among other fields has Invoice Number Invoice Date Account Number Sales Amount Impressions My Customer table has fields Account Number Customer Name One Customer may have many accounts. The trouble is my Customer table doesn't have all Account Numbers that Fact table has (many accounts were deleted from the Customer table as they are no longer our customers) But I really have to show those accounts otherwise totals for the previous years wouldn't be correct. I am creating Customer dimension with levels Customer Name Account Number Invoice Number But no matter from which table I take Account Number (Customer or Fact table) and what I do, I cannot get those deleted accounts to appear. Is there any way to display all accounts, not present in Customers table under Customer Name called "Closed Accounts", for example? I am sure there should be a way to do it other then to create a view from Fact table + Customer with distinct Account Number and "Closed accounts" for those that are not fount in Customer table. Any help is greatly appreciated. |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Thanks a lot for your reply. In my case the first option is a great solution, but I don't know how to implement it. A couple days ago I tried to assign Customer Name to the member property of the Account Number and could see it in property window OK while moving the cursor over the Account. But how to display it among dimension levels? If I cannot display the Customer Name as a separate column, is it at least possible to add the value of member property to an Account Number in its Member Name Column property? What the syntax would be like? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Sean, Changing the source column of the member name to be equal to "dbo"."customer" + "dbo"."account_number" does't work. I changed my dimension to start with Account Number level with a member property Customer Account Number has Member Key(and Name) Column: "dbo"."FactTable"."AccountNumber" and source column for Customer member: "dbo"."tblCompanies"."CompanyName"+"dbo"."FactTabl e"."AccountNumber" gives me an error: the member key column is not valid Also is it possible in AS Manager to create a Customer Dimension with levels Customer Account Number... Invoice where Customer is a top level so while building a dimension, all Account Numbers from the Fact table, that are not found in a Customer table would be classified as a "Closed Accounts" Customer (I am not interested in tracing those closed accounts). I understand I have to add a record to the Customer table Account Number-000 (for example) Customer name - 'Closed Accounts' And then in a Member Name Column (or Member Key Column?) property for Account Number level I should create some expression, saying something like: if AccountNumber is not found in Customer table, switch it to "000". Is it possible at all? I tried case.when and iif. but it didn't work Same "the member key column is not valid" message. If no one can give me a proper syntax to do it, may be you can recommend some article to read? Thank you. *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
![]() |
| Thread Tools | |
| Display Modes | |
| |