IIF Expression in SSRS 2008R2 -



IIF Expression in SSRS 2008R2 -

i have written iif statement:

=iif(fields!addressline1.value< ",", "no details", fields!addressline1.value)

this works fine in returns 'no details' if addressline1 value blank. however, add together fields!postcode.value initial argument, like:

=iif(fields!addressline1.value , fields!postcode.value < ",", "no details", fields!addressline1.value) - isn't working.

any suggestions much appreciated - thanks.

you need specify "is blank" bit each part of and;

=iif(fields!addressline1.value <"," , fields!postcode.value < ",", "no details", fields!addressline1.value)

as aside, "less comma" super weird way of saying "is blank". expect isnothing() used, so:

=iif(isnothing(fields!addressline1.value) , isnothing(fields!postcode.value), "no details", fields!addressline1.value)

of course of study if way works, wouldn't worry.

ssrs-2008-r2 ssrs-expression

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -