Replace blanks in excel file by 0

  • Hi,

    I have an Excel file with Quaterly sales figures. Some fields in sales figures are blanks indicating no sales for particular quarter for specific product.

    using SSIS how can i replace NULL by 0 so that i can aggregate and obtain the Sum of Total sales and further create a Pivot Chart

    Raunak J

  • Add a derived column transformation with the following expression:

    (ISNULL(myColumn)) ? 0 : myColumn

    Do this for every column that needs conversion.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

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

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