Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SSAS 2008 Unknown Member


SSAS 2008 Unknown Member

Author
Message
thehinds
thehinds
Grasshopper
Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)Grasshopper (10 reputation)

Group: General Forum Members
Points: 10 Visits: 32
I'm using SSAS 2008. I have a fact table that could contain NULL values that are associated with a dimension. Instead of ignoring dimension errors, I set the Unknown Member attribute in the dimension to visible. My understanding is that after setting that attribute, during cube processing, if a null is encountered no error is thrown, but rather that fact is thrown in the unknown bucket for that dimension.

I am still getting the dimension error :
Errors in the OLAP storage engine: The attribute key was converted to an unknown member because the attribute key was not found. Attribute Branch Id of Dimension: Lending Branch from Database: Rapid2, Cube: Rapid2Cube, Measure Group: Request Queue Trans Query, Partition: Request Queue Trans Query, Record: 1.

Am I missing something?

Thanks for the help, in advance Smile
Koen Verbeeck
Koen Verbeeck
SSC-Insane
SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)SSC-Insane (24K reputation)

Group: General Forum Members
Points: 24405 Visits: 13268
I think the problem lies in the fact that when the cube is processing your fact table, he will link the surrogate keys (or attribute key, whatever you use) to your dimension. If the SK is null he can not map the relationship.

For example:

FACTS (SK_Customer, amount, date_transaction)
1 500 2010/02/23
null 600 2010/02/23
2 1000 2010/02/22
...

CUSTOMER DIMENSION (SK_Customer, customer_ID, first_name, last_name)
1 customer1 firstname1 lastname2
2 customer2 firstname2 lastname2
...

In this case, the surrogate key of the second fact is missing. During processing, the cube can not find the SK with the value 'null' in your dimension, causing an error. Therefore you should map the null values in your fact table to surrogate key -1 and insert the following line in your dimension (following the previous example):

-1 N/A NOT APPLICABLE NOT APPLICABLE (N/A for codes, NOT APPLICABLE for text items)

Now the cube will find the NOT APPLICABLE member instead of nothing and therefore there is no error.

Anologue you can use a SK with value 0 for UNKNOWN members (and thus creating your own unknown member).

You can do this mapping in the ETL fase or in the DSV.


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
Raunak Jhawar
Raunak Jhawar
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1471 Visits: 1944
Perfect explanation by the Koen. Just to add my two cents...

Make an effort to assign some default values to such dimension entities.

Regards/Raunak
Now a member of Linkedin

Please visit the all new Performance Point Forum
Please visit the all new Data Mining and Business Analytics Forum
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search