[英]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.我的 Azure 数据库容器中有两个 excel 文件,我想转换该数据并填充 Azure 数据工厂中的单个数据库或文件。
For Example:例如:
I would like to copy the data from the below excel file:我想从下面的 excel 文件中复制数据:
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.作为 Azure 数据工厂的新手,我无法在 Internet 上找到很多与我的查询相关的数据,因此如果我能得到一些有关查询的建议或帮助,那就太好了。
Thanks in advance.提前致谢。
You need to map given excel to target file.您需要将给定的 excel 映射到目标文件。 Use DataFlow activity.
使用DataFlow活动。
Source Schema.源架构。
Sink Schema.接收器架构。
I have used CSV file as Sink.我使用 CSV 文件作为接收器。
You can map only required columns as shown below.您可以仅映射所需的列,如下所示。
When you want to update these records you can use Upsert if
.当您想更新这些记录时,您可以使用
Upsert if
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.