Click here to Skip to main content
15,887,987 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a result set in SRSS like I have mentioned below. I need to round the Elements which are not - to one decimal. How I can do this in SRSS 2008 reporting services.



Name Sio2

HRSG11 -

HRSG12 -

HRSG13 -

HRSG14 1.0212

HRSG15 2.233

HRSG21 23.11

I wrote like this

IIf(Fields!SiO2Lab.Value <> "-",Format(Int(Fields!SiO2Lab.Value), "N0"),true)

But it gives me the output like


Name Sio2

HRSG11 #Error

HRSG12 #Error

HRSG13 #Error

HRSG14 1

HRSG15 2

HRSG21 23

The underlying datatype of SiO2 is NVarchar(Max)

Please help me

Regards
-pep
Posted

1 solution

Name	SiO2
HRSG11	        -
HRSG12	        -
HRSG13	        -
HRSG14	       1.232
HRSG31	       2.232
HRSG31	       3.344

After writing the expression : IIf(Fields!SiO2Lab.Value <> "-",Format(Int(Fields!SiO2Lab.Value), "N0"),true)

Name	    SiO2
HRSG11	     #Error
HRSG12	      #Error
HRSG13	      #Error
HRSG14	      1.232
HRSG31        2.232
HRSG31	      3.344
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900