Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Derived Column Transformation | Data Flows and Transformations in ADF
Introduction to Data Engineering with Azure
course content

Conteúdo do Curso

Introduction to Data Engineering with Azure

Introduction to Data Engineering with Azure

1. Getting Started with Azure and Core Tools
2. Foundations of Azure Data Factory
3. Data Flows and Transformations in ADF
4. Practical Problem Solving with ADF

bookDerived Column Transformation

Derived columns allow you to enhance your data by creating new fields or modifying existing ones based on business logic. This functionality is vital for enriching your dataset to better serve downstream processes such as analytics, reporting, or machine learning.

For instance, you might create a FullName field by concatenating first and last names or derive a DiscountedPrice based on an existing Price field and a discount rate.

How to Create Derived Columns in ADF

  1. Add a new Data Flow in the Author section of Azure Data Factory Studio;
  2. Drag a Derived Column Transformation from the toolbox onto the Data Flow canvas and connect it to your data source;
  3. In the Derived Column Transformation settings, define the column name for the new or modified field, such as DeathRate;
  4. Write an expression using ADF's expression language. For example, to calculate a death rate: iif(TotalDeaths > 0, (Covid19Deaths * 100.0) / TotalDeaths, 0.0);
  5. Validate the configuration by previewing the data to ensure the derived column is calculated correctly;
  6. Connect the transformed data to a Sink Transformation to send it to a destination, such as a SQL table or Blob Storage, for further processing.
Which of the following is an example of using a Derived Column Transformation?

Which of the following is an example of using a Derived Column Transformation?

Selecione a resposta correta

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 2
We're sorry to hear that something went wrong. What happened?
some-alt