简体   繁体   中英

Using Azure Data Factory transform multiple Excel data to a main file

I have two excel files in my Azure Database Container and I would like to transform that data and populate a single database or file in Azure Data Factory.

For Example:

I would like to copy the data from the below excel file:

Product Units Sold Sale Price
Carretera 1618.5 $ 20.00
Carretera 1321 $ 20.00
Montana 921 $ 15.00
Montana 2518 $ 12.00
Paseo 292 $ 20.00
Paseo 974 $ 15.00

Into the main file with the headers:

Segment Country Product Discount Band Units Sold Manufacturing Price Sale Price Gross Sales Discounts Sales COGS Profit Date Month Number Month Name Year

Being new to Azure data factory I could not find much relevant data to my query on the internet, therefore it would be great if I got some suggestions or assistance regarding my query.

Thanks in advance.

You need to map given excel to target file. Use DataFlow activity.

Source Schema.

在此处输入图片说明

Sink Schema.

在此处输入图片说明

I have used CSV file as Sink.

You can map only required columns as shown below.

在此处输入图片说明

When you want to update these records you can use Upsert if .

在此处输入图片说明

在复制活动中执行映射时,我无法看到或选择输出列,通过覆盖现有数据将 Excel 源复制到 CSV 接收器。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM