How do you do you check if a value is in a list, in the Derived Column Transformation in SSIS?

This seems like such a simple thing, but I can't get it to work. 
All I want to do is check this substring to see if it is in the list of three values. 
SUBSTRING( [Revenue_Cost_Code] , 5, 2 ) in ("10","20","80")
I can't find any documentation on a comparison to a list of values.  Is my only option to do an OR statement and comare it to each value one-at-a-time?

Hi Tim,
Unfortunately it is not possible to use a comma separated list in an if statement when using SSIS expressions. The only alternative, when the list is very long, is to use .NET code in a Script Component. But this is only a benefit for very complex/long/nested
if-statements.
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter

Similar Messages

  • How can you check a different iCloud account in safari in an iPad?

    How can you check a different iCloud account in safari in an iPad?

    As currently designed, you cannot. Once iCloud detects you are on mobile Safari, it switches you to the iPad screen.
    If you had another browser that would allow you to pretend you were a desktop Safari client, ie8 or 9, or Firefox, that might work.
    But, Puffin and Opera mini don't work.
    Gary

  • How do you check your dedicated GPU is working?

    How do you check your dedicated GPU is working?
    Some strange things have been happening since my MBP (2009, SSD, 8GB, 17") was updated to Lion:
    1. Icon images load slower than usual, e.g when opening the applications folder the images take a fraction longer than would be normal
    2. If re-naming a folder, you see the new title, then the old one, then it switched back to the new one.
    3. When playing HD video, or rapid desktop switching the picture looks split in two.
    I checked that my GPU was on dedicated, but it had changed back to Intel integrated? Then a re-start and I checked it was on dedicated GPU, which it was BUT the above problems still remain.
    Plugged in a 24" LED Display via display port and it does not come on - only the USB ports work. Does a display need a dedicated GPU to work?
    Zapped Parameter Ram, rebuild permissions, and reset SMC all to no avail. Techtools pro 6.0 finds both cards but can't check them. I assume its not Lion compatible yet?
    MBP is still under Apple Care, but I want to know if I can identify the problem is the NVIDA GPU. But how?
    SBB

    Disconnect other hardware
    Run a hardware test & safe mode see if it goes away
    Safe Mode
    http://support.apple.com/kb/HT1455
    Reset SMC
    http://support.apple.com/kb/ht3964
    PRAM/NVRAM
    http://support.apple.com/kb/HT1379
    Hardware Test
    http://support.apple.com/kb/HT1509
    Backup files to a exteranl drive and disconnect , c boot off 10.6 installer disk and simply over-install OS X onto the installe version run the Combo Update
    http://support.apple.com/kb/DL1399
    That should take of the faulty driver if there is one.

  • How do you check if your iphone 5s is unlocked?

    how do you check if your iphone 5s is unlocked....  tried to check it through imei.info not showing any data

    i dont know how accurate it is ( it was accurate for me) but this site:
    http://iphoneimei.info/
    checked for free - you just need to type in the IMEI number of the phone

  • How do you check the existance of a file in Linux?

    Hi,
    How do you check to see if a file in certain directory exists?
    I'm trying something like.
    if [ "ls fhs_jwesha_2.log" ]; then echo Here; else echo Not Here.;fibut I know that's not the right command.
    Anybody?

    Assuming from command line:
    [user@myhost /]$ [ -f /etc/passwd ] && echo "here" || echo "not here"
    here
    [user@myhost /]$ [ -f /etc/no_file ] && echo "here" || echo "not here"
    not hereFor a script, try:
    if [ -f /etc/passwd ]; then echo "here" ; else echo "not here" ; fi-troy
    http://troysunix.blogspot.com

  • HT4623 how do you update an ipod touch? Mine does not have the software update under the general tab.  thx

    how do you update an ipod touch? Mine does not have the software update under the general tab. I would like to back it up to Icloud.   Thx

    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    If an Update Appears Install it... if not... you are up to date for your particular Device...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    To use iCloud you have to have iOS 5 or later.

  • In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    In Mavericks Mail, how do you attach a PDF (single-page or multi-page) without the PDF being embedded in the message?

    I attached a .doc file to the message and it appeared as an icon, so I did not have to convert it. I attached a .jpg image — it appeared as a full image, but when I Command+clicked the image, the view as icon window did not appear on the screen. Likewise, I again checked the Mail Menu Bar, and did see 'View as icon.' Side note: I routinely use Mavericks Mail in Classic Mode, so I decided to try both modes. Same results in both modes. I checked my Mail Preferences, but couldn't find anything there, either. I'll continue to look around, but this has me stumped. Thanks for your assistance.  

  • How do you change categories in both transactions and budget report in the personal budget template in Numbers?

    How do you change categories in both transactions and budget report in the personal budget template in Numbers?
    I am working on both an iPad mini and a MacBook Air. 
    Whenever I change the category name in the budget report, it does not actually show up in the transactions tab when I am using the Personal Budget Template. 
    I have already tried copying and pasting a category in the budget report to add another row but it still does not show up in the transactions tab. 

    Hi golmeda,
    Check out this answer here:
    Using Numbers Personal Budget template I can't figure out how to change the categories in both tabs (budget and transact…
    If it is unclear let me know.
    quinn

  • How do you "pause" an open application, like Mac automatically does when the memory is full?

    How do you "pause" an open application, like Mac automatically does when the memory is full?
    I would like to do so proactively when I am not using a certain program but need to keep it open, and I want to free up computer resources.
    In other words, I want to keep a given program open, but stop it from "thinking".

    There is an application that I can only open a set number of times before it expires.  Every time the program closes, you get one less use out of it.  I want to use it as long as possible, so I thought I would just keep it open all the time.  However, it consistently turns on the fan on the computer, so I imagine it uses a lot of resources.  I got the idea after the Force Quit program "paused" it once after getting overloaded with all the apps I had open.  It stopped the fan, and I was able to open it and run it again later with no problems.  The tricky thing with trying to intentionally overload the system is that it's a hit or miss on which open program the OS will pause (to my knowledge).

  • How do you get iTunes purchased songs to automatically play one after the other

    How do you get iTunes purchased songs to play automatically one after the other without having to hit play for each song ? Also I lost all my pictures on my iPad when I installed iOS 7 upgrade. Any way to get them back? Thanks. Dr Ron.

    Hi Dr. Ron,
    By your question, I am wondering if you are playing your music from the iTunes app rather than the Music app?
    In the Music App, you can go to any of the options at the bottom and click on a song to play and it will then continue to play the songs in that category. You can also select "Shuffle" to shuffle them.
    As for your Photos, did you have them backed up anywhere?
    Cheers,
    GB

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • After the latest update I can no longer see my iPhone listed on the left column - how do you get to where you can pick

    After the latest itunes update I can no longer see my iPhone listed on the left column. How can I get to the section where I can pick & choose apps etc to be synced?
    Also I had to get a new iPhone & so I backed up the night before to the cloud & my computer. When I tried to restore from back up with the new phone my back up wasn't there - shouldn't it be automatic via wifi from the cloud?
    What am I doing wrong?

    Your iphone is shown at the top of the page.
    You can also simply click View>Show Sidebar and it will look about the same as it did before.

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

  • Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Sorry I'm new to Final Cut Express. How do you make an image (jpeg file for example) move across the screen slowly as I've seen in many films.

    Neil from bristol wrote:
    … How do you make an image … move across the screen …
    by setting KEYFRAMES
    (read, what FC/e's built-in Help-feature tells about it)
    resize and set pic to start position
    set keyframe
    move playhead in timeline to desired length
    set pic to end position
    set keyframe …

  • How do you create aligned interactive text boxs in a PDF with the same width and height?

    how do you create aligned interactive text boxs in a PDF with the same width and height?
    Without free hand creating the sizing?

    Assuming by "interactive text boxes" you mean form fields; in Acrobat, make a form field, then copy it and paste. (GIve the pasted copy a different name so they don't genetate the same field feedback.) Now you have two fields of the exact same size. Shift-click or marquee-drag to select both, then right-click and choose a command from the Align, Distribute or Center menu.

Maybe you are looking for

  • Foramtting Paragraph in Header

    Hi Folks,               Forgive my ignorance I'm only new to Dreamweaver, but I'm having an issue with an html5 template included with DW, the two column. I try to put in a paragraph under the header, between vert menu and image in head, but when I g

  • Extra photos appearing in email

    I took a work-related photo with my Droid X then emailed it a few minutes later from my Droid to a co-worker at her office email address via my personal Gmail account.  When the email arrived, extra photos that I did NOT send and which are NOT stored

  • [svn:fx-trunk] 8721: Hopefully final implementation of IME support.

    Revision: 8721 Author:   [email protected] Date:     2009-07-21 15:11:37 -0700 (Tue, 21 Jul 2009) Log Message: Hopefully final implementation of IME support. QE Notes: None Doc Notes: new API in IIMESupport Bugs: SDK-22267, SDK-18516 Reviewer: Gordon

  • Handling two independent failover groups in a remote shared subnet env.

    I have have two Sun Ray(server) failover groups, both on the same subnet. The first group offers a Solaris desktop and the other SLES 10. Some of my end users prefer Linux and some prefer Solaris. How can I direct a Linux user to my SLES Sun Ray serv

  • Service Entry Sheets with respect to PO

    Hi, Please let me know how we can create service entry sheets with respect to Purchase Orders in MM. Can we default the details of PO if we give PO reference in ML81N in MM. Thanks, Vijay