Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Data Warehousing
»
Analysis Services
»
SSAS 2008 Unknown Member
SSAS 2008 Unknown Member
Rate Topic
Display Mode
Topic Options
Author
Message
thehinds
thehinds
Posted Friday, February 12, 2010 4:00 PM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, October 31, 2012 2:47 PM
Points: 4,
Visits: 27
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 :)
Post #865001
Koen Verbeeck
Koen Verbeeck
Posted Tuesday, February 23, 2010 4:19 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Today @ 6:39 AM
Points: 9,376,
Visits: 6,472
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?
Member of
LinkedIn
. My blog at
LessThanDot
.
MCSA SQL Server 2012 - MCSE Business Intelligence
Post #871031
Raunak Jhawar
Raunak Jhawar
Posted Sunday, September 25, 2011 10:48 PM
SSC Eights!
Group: General Forum Members
Last Login: Wednesday, May 15, 2013 11:25 PM
Points: 946,
Visits: 1,739
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
Post #1180721
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.