Share via

dataflow - join

arkiboys 9,711 Reputation points
2022-03-21T08:05:55.1+00:00

in dataflow I am using join activity to join two tables. table1, table2

both tables have ID column and this is what I join them with.
both tables have a field called companyName.
in join, either table1.companyName has avalue or table2.companyName has a value
They will not both have a value in companyName.
I would like to select the companyName as a field and have the value from the tablefield which has a value.
for example my select is something like:

ID table1.field1 companyName
1 rterte this value comes from either table1 or table2 depending which one of them has a value

Thank you

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.

0 comments No comments

Answer accepted by question author

Nasreen Akter 10,896 Reputation points Volunteer Moderator
2022-03-21T12:59:56.993+00:00

Hi @arkiboy,

You can try coalesce() function in the Dataflow. Thanks!

coalesce(table1.companyName, table2.companyName)

185195-image.png

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.