expression

Vicki 46 Reputation points
2022-08-09T21:18:40.413+00:00

I have the txt file with several columns (Code, Earing, OverTime, Vacation). I need to set the fit value for column Earning =10 if the the Code ="A" .

Something like this but I am not sure?

(TRIM([Code])) == "A" ? [Earing] ==20 : ""

Thanks

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,452 questions
0 comments No comments
{count} votes

2 additional answers

Sort by: Most helpful
  1. Vicki 46 Reputation points
    2022-08-10T14:34:32.653+00:00

    It worked, thank you

    1 person found this answer helpful.
    0 comments No comments

  2. Yitzhak Khabinsky 24,946 Reputation points
    2022-08-09T22:58:13.633+00:00

    Hi @Vicki ,

    Please try the following expression in the SSIS Derived Column transformation:

    TRIM([Code]) == "A" ? "10" : ""  
    
    0 comments No comments