Groups | Blog | Home
all groups > sql server reporting services > july 2005 >

sql server reporting services : Format Question



RP
7/11/2005 8:27:01 AM
Hi,
I have a column with numbers like this and the output desired.

dataset output desired
0.170 0.17
0 0
1.120 1.12
0 0

But when i format it with number, #.## etc. i get "0" as 0.00 - which i
dont want
any suggestions ?
Thanks
RP
RMac
7/11/2005 9:19:15 AM
RP,
If I try 0.## I get the results you are looking for. The data type for the
data is dec(5,3). With #.## I get .00 for 0 rather than 0.00. What is the
datatype of your data?

RMac


[quoted text, click to view]
RMac
7/11/2005 9:27:01 AM
I take that back. I'm seeing 0.00 for zero. Let me see what I can come up
with. Apologies.

[quoted text, click to view]
RMac
7/11/2005 9:36:08 AM
RP,
Give G5 a try. If you need a larger precision specifier, just change the 5
to the desired number.
RMac

[quoted text, click to view]
RP
7/11/2005 11:19:17 AM
G5 worked perfect. Thanks RMAC.
(Actually in the meantime i changed it to #.00, and in expression i put an
iif(no <=0 then '0') ..blah blah....
But G5 is much much easier to use. Thanks again.

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