dbTalk Databases Forums  

Creating Dimensions with NULL and 0 Member

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


Discuss Creating Dimensions with NULL and 0 Member in the microsoft.public.sqlserver.olap forum.



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

Default Creating Dimensions with NULL and 0 Member - 02-17-2005 , 06:02 AM






Hi,

when I create a Dimension from a numerical column the values NULL and 0 are
both shown as NULL, however i do need the two separate values of 0 and NULL.
Is there a solution for this problem? Any help will be greatly appreciated.

Thanks
Thorsten



Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Creating Dimensions with NULL and 0 Member - 02-17-2005 , 12:45 PM






AS does not understand 3-value logic. It has no concept of NULL as a RDBMS
handles ANSI NULLs -- it translates it to zero automatically. What I
typically recommend to customers is to create a view where you cast NULLs to
whatever value you wish (e.g. create a "unknown" member within your
dimension tables).

With SQL Server 2005, AS does have specific logic for handling NULLs and
unknown members automatically.

--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Thorsten" <ButchCoolidge (AT) web (DOT) de> wrote

Quote:
Hi,

when I create a Dimension from a numerical column the values NULL and 0
are
both shown as NULL, however i do need the two separate values of 0 and
NULL.
Is there a solution for this problem? Any help will be greatly
appreciated.

Thanks
Thorsten





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.