Groups | Blog | Home
all groups > sql server reporting services > may 2006 >

sql server reporting services : Numeric Formatting



Claude
5/14/2006 2:29:02 PM
How can I achieve the following:

I'd like negative numbers to be enclosed in brackets and the decimals to
lign up (vertically) with the positive numbers (right justified).

I have used, Format ="#,##0.00 ;(#,##0.00); ", but the space is trimmed. Any
ideas ?

Thanks,
Joe L
5/15/2006 5:33:30 PM
I am not in front of Visual Studio so I cannot test this....

My idea is that you could use an expression to alter the right padding of
the numbers. If they are <0 then 2pt else 4pt (or whatever the width of the
bracket).

This is a little hackish because if you ever change the font, size or
anything that padding would change.


[quoted text, click to view]

Claude
5/16/2006 1:41:02 PM
You are spot on Joe. Thanks for the help.

Claude

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