dbTalk Databases Forums  

Substituting NULL values with 0s

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


Discuss Substituting NULL values with 0s in the microsoft.public.sqlserver.olap forum.



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

Default Substituting NULL values with 0s - 03-07-2006 , 02:12 PM






AS2000 SP4

I have a production cube that lists number of units sold by employees. The
fact table is on the account level, i.e. it lists the employee id, the sale
number, and other attributes associated with the sale. There are employees
that have no units sold; therefore, they are not in the fact table. I am
able to list these employees by substituting null values with 0's:

iif(isempty([Measures].[Units]),0,[Measures].[Units])

There are multiple positions of employees, i.e. Personal Banker, Customer
Service Rep, etc. This Position dimension becomes obsolete with the above
substitution - there are multiple empty crossjoins associated with the above
calc member.

Is there any way to include a filter in the above calc member to filter by
the position dimension?

Reply With Quote
  #2  
Old   
Pasha
 
Posts: n/a

Default RE: Substituting NULL values with 0s - 03-07-2006 , 05:26 PM






BUMP

"Pasha" wrote:

Quote:
AS2000 SP4

I have a production cube that lists number of units sold by employees. The
fact table is on the account level, i.e. it lists the employee id, the sale
number, and other attributes associated with the sale. There are employees
that have no units sold; therefore, they are not in the fact table. I am
able to list these employees by substituting null values with 0's:

iif(isempty([Measures].[Units]),0,[Measures].[Units])

There are multiple positions of employees, i.e. Personal Banker, Customer
Service Rep, etc. This Position dimension becomes obsolete with the above
substitution - there are multiple empty crossjoins associated with the above
calc member.

Is there any way to include a filter in the above calc member to filter by
the position dimension?

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.