dbTalk Databases Forums  

Problem with display format

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


Discuss Problem with display format in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mkazmierski@gmail.com
 
Posts: n/a

Default Problem with display format - 01-20-2006 , 09:46 AM






Hello,

My cube looks similar to:
http://www.sql-server-performance.co...msas_12_22.jpg

As you can see there for a dimension 'fantastic discounts' cell for the
first measure is empty and for second it's equal to .00). I would like
to have there 0 and 0.00). How can I do that ??

Regards, Mark


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

Default Re: Problem with display format - 01-20-2006 , 04:34 PM






All you should have to do is change the format String...
the following should work for you:
"#,#.00;;;0"
&
""#,#.00;;0.00"

(the first section is for Positive #'s, 2nd for Negative #'s, the 3rd
for Zeros, and the 4th for Null value formatting )


Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: Problem with display format - 01-20-2006 , 09:01 PM



I think what you are seeing is an empty cell and a cell with a zero
value. In the advance tab for a member or calculated member there is a
property called "format string". It has a number of default options, but
you can also type in your own format string. (similar to excel)

Format strings have the format:

<positive number format>;[negative number format];[zero format];[empty
format]

so in your case you would probably be after something like:

#,##0.00;-#,##0.00;0.00;0

--
Regards
Darren Gosbell [MCSD]
Blog: http://www.geekswithblogs.net/darrengosbell

In article <1137771989.535328.214540 (AT) g14g2000cwa (DOT) googlegroups.com>,
mkazmierski (AT) gmail (DOT) com says...
Quote:
Hello,

My cube looks similar to:
http://www.sql-server-performance.co...msas_12_22.jpg

As you can see there for a dimension 'fantastic discounts' cell for the
first measure is empty and for second it's equal to .00). I would like
to have there 0 and 0.00). How can I do that ??

Regards, Mark



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.