dbTalk Databases Forums  

No data as 0 (zero)

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


Discuss No data as 0 (zero) in the microsoft.public.sqlserver.olap forum.



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

Default No data as 0 (zero) - 12-08-2003 , 08:09 PM






Hi, is it possible to Analysis Services return a "0" zero, when no data
appears for a cell???
I'm doing it by code but i think there may be a value to set that on
Analysis Services.

Thanks a lot
Nabani



Reply With Quote
  #2  
Old   
Lutz Morrien
 
Posts: n/a

Default No data as 0 (zero) - 12-09-2003 , 04:24 AM






Hi,
my guess is something like this:

IIf(IsEmpty(Measures.CurrentMember), 0,
Measures.CurrentMember)

However I think that "Null" means something else than "0".

It gives the signal that there is no data available for
this cell. In my opinion it might not be wise to replace
Null with a zero, for it effectly falsifies the data
displayed.

But you will probably already have considered this.
HTH Lutz

Reply With Quote
  #3  
Old   
GS
 
Posts: n/a

Default No data as 0 (zero) - 12-09-2003 , 06:19 AM



Hi,

For every measure, in the properties window, you
canspecify the format of the cell. You cna specify teh
format you need by customising this value.

Refer to "FORMAT_STRING Contents" for further details.

Hope this helps

Regards
GS
Quote:
-----Original Message-----
Hi, is it possible to Analysis Services return a "0"
zero, when no data
appears for a cell???
I'm doing it by code but i think there may be a value to
set that on
Analysis Services.

Thanks a lot
Nabani


.


Reply With Quote
  #4  
Old   
Nabani Silva
 
Posts: n/a

Default Re: No data as 0 (zero) - 12-10-2003 , 06:21 PM




Thanks a lot!!!!, that was what i was looking for...

Nabani


"GS" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

For every measure, in the properties window, you
canspecify the format of the cell. You cna specify teh
format you need by customising this value.

Refer to "FORMAT_STRING Contents" for further details.

Hope this helps

Regards
GS
-----Original Message-----
Hi, is it possible to Analysis Services return a "0"
zero, when no data
appears for a cell???
I'm doing it by code but i think there may be a value to
set that on
Analysis Services.

Thanks a lot
Nabani


.




Reply With Quote
  #5  
Old   
Nabani Silva
 
Posts: n/a

Default Re: No data as 0 (zero) - 12-10-2003 , 06:22 PM



Thanks a lot!!! I think using FORMAT_STRING as suggested by GS help me more
in this case...

Nabani



"Lutz Morrien" <lutz.morrien (AT) ocb (DOT) notthis.com> wrote

Quote:
Hi,
my guess is something like this:

IIf(IsEmpty(Measures.CurrentMember), 0,
Measures.CurrentMember)

However I think that "Null" means something else than "0".

It gives the signal that there is no data available for
this cell. In my opinion it might not be wise to replace
Null with a zero, for it effectly falsifies the data
displayed.

But you will probably already have considered this.
HTH Lutz



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.