从电源查询中导入.csv文件中选定的列
我希望从.CSV文件的变量列表中以已知所需的列标头导入数据,其中一些列有我不需要的列。例如:
文件1可能有: 名称,地址,电子邮件
文件2具有: 名称,地址,电子邮件,cell_phone
我需要将所有CSV文件附加到一个表中,但我只需要名称,地址和电子邮件数据。
这需要是一个动态的解决方案,因为将来数据供应商可能会在其.CSV文件中添加其他新字段,这是我无法控制的。
I'm looking to import data with known required column headers, from a variable list of .csv files, some of which have columns I don't need. For example:
File 1 maybe has:
NAME, ADDRESS, EMAIL
File 2 has:
NAME, ADDRESS, EMAIL, CELL_PHONE
I need to append all csv files into a single table but I only want NAME, ADDRESS, and EMAIL data.
This needs to be a dynamic solution because in future the data supplier may add other new fields in their .csv files, and this is out of my control.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从CSV文件中组合数据,然后选择要保留的列:
You can combine data from your CSV files then select the columns you want to keep:
您可以单击“变换数据”按钮。
您将在内容和数据的第一列之间看到“组合文件”按钮。单击这并让确定加载数据。您的数据将正确加载。然后,您可以尝试转换数据
from there you can click on transform Data button.
you will see the combine files button between content and the first column of the data. click on that and make ok to load the data. your data will be loaded correctly. then you can work on transforming the data however you want to