Column with Zero values returned as False

  • Hi,

    I have a very basic report and I tested the SQL query in Query Analyser and works fine... But when I tried to run same query by creating a report, one of the columns which returns 0 is returning 'false' as output instead of 0... I dont know why this is happening..

    Any suggestions are welcome.

    Thanks in advance.

  • This would be the expected result when your data type is BIT.   You can try modifying the query / sproc to force the value as an INTEGER.

    CONVERT(INT, data_value)

    Good luck

    Mike

     

  • You can even change on the report like this...

     

    IIF(Fields!YourColumnName.Value = "false",0,Fields!YourColumnName.Value)

     

    Ramya

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

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