March 30, 2012 at 1:57 pm
hi
whats wrong with this exp
=iif(trim(cstr(Fields!Total.Value ="")),"?",iif(trim(cstr(isnothing(Fields!Total.Value))),"?",Fields!Total.Value))
plz help
this is int field
March 30, 2012 at 2:39 pm
Please post all replies to the initial thread:
http://www.sqlservercentral.com/Forums/Topic1276016-1633-1.aspx
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
March 31, 2012 at 1:29 pm
First glance: you have your comparison inside of the trim/cstr functions
trim(cstr(Fields!Total.Value =""))
vs
trim(cstr(Fields!Total.Value)) =""
also
iif(trim(cstr(isnothing(Fields!Total.Value)))
should likely be
iif(isnothing(trim(cstr(Fields!Total.Value)))
because you are not trimming and converting the results of the isnothing(), you are checking isnothing() against the trimmed and converted value of Total.
March 31, 2012 at 4:23 pm
SQLRNNR (3/30/2012)
Please post all replies to the initial thread:http://www.sqlservercentral.com/Forums/Topic1276016-1633-1.aspx
According to that link, Jason... we're already there. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply