dbTalk Databases Forums  

measure display

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


Discuss measure display in the microsoft.public.sqlserver.olap forum.



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

Default measure display - 06-26-2006 , 04:33 PM






Is there anyway to display blank if measure is 0, format of measure is
deciaml


0.00 should display blank
17.23 display 17.23

If i select format string #,#.## it work fine but deciaml point is displaying


IF([Measures].[Hours] =0,0,[Measures].[Hours])

0.00 displays .
17.23 is fine 17.23


thanks
Kalyan


Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: measure display - 06-26-2006 , 07:29 PM






How about if you define 3 sections in the FORMAT_STRING, for positive,
negative and zero values, like:

#,#.##;;#

The sections are explained in this MSDN page:

http://msdn.microsoft.com/library/de.../en-us/olapdma
d/agmdxadvanced_2aur.asp
Quote:
FORMAT_STRING Contents
...
Three sections

The first section applies to positive values, the second to negative
values, and the third to zeros.
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.