Share via

pivot transform - multiple columns

arkiboys 9,711 Reputation points
2022-05-14T07:44:08.197+00:00

Is the pivot transformation used for only one pivot column only?
If I would like to pivot on several columns, do I use the transformation per required pivot column?
if I have to use more than one pivot transform then should I use branching?
Thanks

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

ShaikMaheer-MSFT 38,631 Reputation points Microsoft Employee Moderator
2022-05-16T13:13:10.233+00:00

Hi @arkiboys ,

Thank you for posting query in Microsoft Q&A Platform.

Is the pivot transformation used for only one pivot column only?

Yes its should only with one column. As you see in below screenshot Pivot key defines on which column you would like to perform pivot. This field allows us to pick only one column.
202357-image.png

If I would like to pivot on several columns, do I use the transformation per required pivot column?

yes, you should consider using pivot on them separately with pivot transformation for each column.

if I have to use more than one pivot transform then should I use branching?

yes, you can consider using branching or added multiple source transformations. Any ways will be fine.

Please check below video to understand more about pivot transformation.
https://www.youtube.com/watch?v=ozQYffvt2aI

Hope this helps. Please let us know if any further queries.


Please consider hitting Accept Answer. Accepted answers help community as well.

Was this answer helpful?

0 comments No comments

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.