ssrs 2008 iif statement used to make column invisible

  • In an ssrs 2008 report, I want a certain column not to be visible under certain conditions.

    If I would try to write that code in sql, the code looks like the following:

    (ISNULL(left(dbo.Customer.num,1),'') In ('0','1') and ISNULL(dbo.Customer.num,'') NOT IN ('0XY','111','133','187'))

    Can you tell when how to write the above statement in an iif statement in ssrs to make the column be invisible?

  • Something like this - You need to have the customerNum in a dataset

    =IIF((left(Fields!Customernum,1) = "0" or left(Fields!Customernum,1) = "1")

    and (Fields!Customernum <> "0XY'

    and Fields!Customernum <> "111"

    and Fields!Customernum <> "133"

    and Fields!Customernum <> "187"), "False" , "True")

    Cheers

    Andy

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply