Hi
I have a diamension called 'mechanism of injury' and measure injurycount situated in the injury measure group.
I defined a relation between mechanism of them using the regular relationship connecting using the mechanismofinjuryid key in both tables (mechanismofinjury and injury). I tried to deploy the cube and it gave me the following error.
Errors in the OLAP storage engine: The attribute key cannot be found: ....
I changed the error handling of cube by right clicking on the cube and going to processes and then customising the error handling to ignore the error. Now i could deploy the cube but the injurycount measure is not showing up correct results.
Before defining the relationship between the diamension i was getting injurycount=2541 which was correct.
After defining relationship between the diamensions i am getting injurycount=2526
When i carefully looked at the injury table i found out that in injury table there are 15 (2541 - 2526) records with mechanismofinjuryid=NULL. It seems like the analysis services do not take these records into account while calculating the measures.
I don't understand how do i handle the nulls without changing the error handling options.
Any help would be greatly appreciated.
-padu.
One way to resolve this problem is to create a missing member in the dimension like MissingDimMember.
When you load the fact table you use this missing member for fact table records with missing dimension members or dimension members that are not found in the dimension table.
It is also possible to configure this solution directly in SSAS2005.
Have a look in BOL: Defining the Unknown Member and Null Processing Properties
HTH
Thomas Ivarsson
No comments:
Post a Comment