Dynamic aggregation column name in Azure Data factory

Mikkel Treu Os 31 Reputation points
2020-11-17T11:12:26.177+00:00

Hi,
@MartinJaffer-MSFT . I've seen you had some great answers to similar topics before, so linking this to you:-)

I have a dataflow which I want to keep as dynamic as possible.
To do this, I have defined an array parameter that is used to specify the key columns. These are used to specify the key columns in the SQL DB sink.
There can be one or more columns in this array.

However, to handle duplicates within one incremental load, I also need to remove duplicates based on the same parameter.
I.e. I want to use the same parameter in the group by column. This works nicely. However, I am not able to split and name the resulting columns dynamically. Can you please advice how to achieve this?

The red box shows what I want to make dynamic, and should be named according to the items in the array sql_table_unique_columns.
40384-image.png

In this picture, what I want is the "group_columns" to be dynamically split in as many columns as specified in the array sql_table_unique_columns, with names from the array.
40354-image.png

Aggregates are dynamic and works:
40431-image.png

In advance, thank you for your time!
Kind regards

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

Accepted answer
  1. Nasreen Akter 10,791 Reputation points
    2020-11-17T18:55:08.843+00:00

    Hi @Mikkel Treu Os ,

    Try this. Thanks!

    40379-dynamiccolumns.png

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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