dbTalk Databases Forums  

NULL Dimension Value

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss NULL Dimension Value in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brian Mahloch
 
Posts: n/a

Default NULL Dimension Value - 10-07-2003 , 05:21 PM






Hello,

I am an OLAP newbie (about 6 hours now) and I created a simple sales cube.
The problem I am experiencing is with a ProductCategory dimension. I need
to be able to filter/sort based on the product category, however, some of
the products do not contain category codes (they are represented as null in
the product master table). This is causing my total sales aggregations to
be innaccurate (its not taking into account those products that were sold
but not in a category). Is there a way to have the dimension include NULL
joins or do I need to restructure the warehouse to handle NULLS as I am
pumping the data in. (for example, create a default category and any
product with a null would be assigned this default value).

Any help is greatly appreciated!

Brian



Reply With Quote
  #2  
Old   
Mosha Pasumansky [MS]
 
Posts: n/a

Default Re: NULL Dimension Value - 10-08-2003 , 12:46 AM






Quote:
but not in a category). Is there a way to have the dimension include NULL
joins or do I need to restructure the warehouse to handle NULLS as I am
pumping the data in. (for example, create a default category and any
product with a null would be assigned this default value).
Creating "Unknown Category" is common technique to solve this kind of
problem. If your product dimension is snowflake, you can do it even without
change to the ETL process which populates data warehouse, by simply using
SQL expression over the column, which would test for NULL, and return
"Unknown Category" instead.

--
==================================================
Mosha Pasumansky - www.mosha.com/msolap
Development Lead in the Analysis Server team
All you need is love (John Lennon)
Disclaimer : This posting is provided "AS IS" with no warranties, and
confers no rights.
==================================================




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.