Hide column IF all rows in that column are null

  • Hello,

    Trying to finish this last report, sadly ran into a hurdle.

    I am trying to hide an Entire Column IF all rows in that column are null, However if there is a number or varchar then dont hide, hope that makes sense, example below:

    Column 1 Column 2

    null null

    null null

    null Stuff

    null null

    so I would like to hide column 1 since its all null, but for column 2 show it since there is something on one of the rows.

    hope anyone can help on this, thanks in advanced

  • if your using SSRS, then you can toggle the visibility of the column using an expression ,

    something like

    iif(SUM(len(colA))=0 , FALSE, TRUE)

    Jayanth Kurup[/url]

  • THANK YOU JAYANTH!

    yup that worked 🙂 you da man 🙂

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

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