Hi @Anandazure ,
Thanks for using Microsoft Q&A forum and posting your query.
Assuming [ERP], [AU-CC] and [ERP_UID] as column names, then your case statement in expression builder should be:
case (
ERP =='SAP ITT', AU-CC,
ERP_UID
)
If [AU-CC] and [ERP_UID] are static values (not columns), then you case statement should be as below.
case (
ERP =='SAP ITT', 'AU-CC',
'ERP_UID'
)
Here are couple more examples for better understanding
True case:
- case(10 + 20 == 30, 'dumbo', 'gumbo') ->This will return 'dumbo' as the condition
10+20==30
is true - case(10 + 10 == 30, 'dumbo', 'gumbo') -> This will return 'gumbo' as the condition
10+10==30
is false
Here is a demonstration video on how to write case statement in Mapping data flow expression builder. Splitting Arrays and Case Statements in ADF Data Flows
Hope this helps. Do let us know if you have further query.
----------
- Please don't forget to click on and upvote 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