Does ETL Support the 'IN' Function in a case when?

Does ETL Support the 'IN' Function in a case when?

Does anybody know if this is possible?

I'm getting an error I just want to make sure that it's not my syntax.

Answers

  • If you are talking about using something like the Formula tile in Magic ETL, then yes. It would be written something like this:

    CASE WHEN fieldname IN (expr1, expr2, etc...) THEN 'True'

    ELSE 'False'

    END

    If your values for expr1, expr2 are all strings, then they would have single quotes around each string.

    Hope this helps.

    **Check out my Domo Tips & Tricks Videos

    **Make sure to <3 any users posts that helped you.
    **Please mark as accepted the ones who solved your issue.