简体   繁体   English

使用 Azure 数据工厂将多个 Excel 数据转换为一个主文件

[英]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 1618.5 $ 20.00 20.00 美元
Carretera卡雷特拉 1321 1321 $ 20.00 20.00 美元
Montana蒙大拿 921 921 $ 15.00 15.00 美元
Montana蒙大拿 2518 2518 $ 12.00 12.00 美元
Paseo帕塞奥 292 292 $ 20.00 20.00 美元
Paseo帕塞奥 974 974 $ 15.00 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

在此处输入图片说明

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Azure数据工厂中将excel csv中的一列数据转换成JSON - Transform JSON Data of one column from excel csv in Azure data factory Azure 数据工厂 - 导入具有动态范围的 excel 文件2 - Azure Data Factory - Import excel file with dynamic range2 复制带有空标头的 Excel 文件 Azure 数据工厂 (ADF) - Copy an Excel file with empty headers Azure Data Factory (ADF) 如何在 azure 数据工厂中将 excel 文件转换为 csv - How to convert excel file to csv in azure data factory 数据工厂中具有多行列标题和空白列的 Excel 文件? - Excel file with multiple row of column headers and blank columns in Data Factory? 在 Azure 数据工厂中获取元数据没有成功给我我的多个 excel 文件 - Get Meta data in Azure Data Factory is not giving me my multiple excel files successfully 如何通过 Azure 数据工厂读取 Excel 文件以获取有限列数据但行数不确定 - How to read the Excel file through Azure data factory for limited columns data but number of rows are uncertain 从多个Excel中获取数据到主Excel - Fetching the data from multiple excel to the Main Excel 使用MATLAB在多个Excel文件中的平均数据 - Average data in multiple excel file using MATLAB 从 Azure 数据工厂中的一个 excel 单独读取两列 - Read two columns alone from an excel in Azure Data Factory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM