FILTER Transformation in ADF

Raj0125 511 Reputation points

Hi Team,

I am new to ADF. I need to filter few ids that i want to see data.

Ex: ID : 1276 ,18976,4587,9870

Please suggest how can i filter the above ids only to show in filter transformation same as like IN Operator in SQL.

Thanks in advance.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,066 questions
0 comments No comments
{count} votes

Accepted answer
  1. KranthiPakala-MSFT 46,437 Reputation points Microsoft Employee

    Hello @Raj0125 ,

    Thanks for the question and using MS Q&A platform.

    Here is an excellent video demonstration of Filter transformation usage in ADF mapping data flow - Filter Transformation in Mapping Data Flow in Azure Data Factory

    For your scenario you can use equal function with multiple OR operations to meet the conditions. Below is an example

    If your ID column is an integer, please use below in your expression builder of filter transformation:

    equals(ID, 1276) || equals(ID, 18976) || equals(ID, 4587) || equals(ID, 9870)  

    If your ID column is a string type, please use below in your expression builder of filter transformation:

       equals(ID, '1276') || equals(ID, '18976') || equals(ID, '4587') || equals('ID, 9870')  

    Hope this will help. Please let us know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful