all groups > sql server reporting services > september 2005 >
You're in the

sql server reporting services

group:

Numer formatting question


Numer formatting question Me
9/15/2005 10:03:05 AM
sql server reporting services:
Hi,

I have a number formating question.

If the value is less than 0, I would like the formatting to look like
(12,345).
If the value is greater than 0, I would like the formatting to look like
12,345.
If the value is equal to 0, I would like a - to be displayed.

I tried =iif( Fields!SPECIALTY_LEASING.Value=0,"-",iif(
Fields!SPECIALTY_LEASING.Value <0,"(0,0)","N0")) but I get a - every time.

Thanks,
Melissa
RE: Numer formatting question magendo_man
9/16/2005 6:59:02 AM
Melissa,

Try the format string #,##0;(#,##0);\-

You must have the backslash character '\' before the dash '-' character. If
you want more than one dash you would have to have \-\-\- in the third part
of the format string. Or, if you want the word Zero you'd have to use
\Z\e\r\o.

HTH,
magendo_man

Stirling, Scotland


[quoted text, click to view]
RE: Numer formatting question Me
9/16/2005 8:37:20 AM
That worked!! Thank you so much!

Melissa


[quoted text, click to view]
AddThis Social Bookmark Button