Rule based mapping in Flatten transformation

Subashri Vasudevan 11,306 Reputation points Volunteer Moderator
2022-08-22T14:42:31.53+00:00

Hi,

Is there a way I can simplify renaming columns in flatten settings without adding each column manually? Like column patterns.

For example, in the below example, I want to write expression to rename columns by ignoring all hierarchical info (ex: goods.orders.shipped.orderitems) and just keep the last portion as column name. Can we write expressions to achieve this? Basically, a generic expression that would just get me the last part of hierarchical shape for all the available columns.

Please advise. TIA

233591-screenshot-20220822-200607.jpg

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
{count} votes

Answer accepted by question author
  1. MarkKromer-MSFT 5,231 Reputation points Microsoft Employee Moderator
    2022-08-23T07:25:47.133+00:00

    You will have to add a Select transformation after the Flatten and use patterns there to rename the columns


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.