简体   繁体   English

将数据连接查询从 Excel 导出到 CSV(>2M 行)

[英]Export Data Connection Query from Excel to CSV (>2M rows)

I have a spreadsheet that is using power query in a data connection to execute modelling on CSV files that have more than 2M rows.我有一个电子表格,它在数据连接中使用电源查询来对超过 2M 行的 CSV 文件执行建模。 This works fine and I can run analysis on this data as needed.这很好用,我可以根据需要对这些数据进行分析。

However, now I want to export the resulting data after all the manipulations have been made.但是,现在我想在完成所有操作后导出结果数据。 I can't see a way to export the data query result without outputing to a sheet... which I can't... because the row count is >1M.如果不输出到工作表,我看不到导出数据查询结果的方法......我不能......因为行数> 1M。

  1. Can I export the data without outputting to a sheet/multiple sheets?我可以在不输出到一张/多张的情况下导出数据吗?
  2. If so, what tool would I need (if any) and what are the general steps?如果是这样,我需要什么工具(如果有的话)以及一般步骤是什么?

I've been trying to work this out on my own for months but I have to recognise my limitations and ask for help now.几个月来我一直在尝试自己解决这个问题,但我必须认识到自己的局限性并现在寻求帮助。 Many thanks in advance.提前谢谢了。 DD DD

You need to use an external tool like DAX Studio (free) to connect to the Power Pivot data model and export the tables to CSV.您需要使用 DAX Studio(免费)等外部工具连接到 Power Pivot 数据模型并将表导出为 CSV。

https://daxstudio.org/ https://daxstudio.org/

As David mentioned above, Dax Studio will output the results of the data model.正如上面大卫所说,Dax Studio 会输出数据模型的结果。 Steps as follows:步骤如下:

  1. Download and install the Dax Studio plugin for excel下载并安装适用于 excel 的 Dax Studio 插件
  2. Make sure the connection you are trying to extract is in the data model.确保您尝试提取的连接在数据模型中。
  3. Launch Dax Studio.启动 Dax Studio。
  4. !!!Dax Studio will only be able to read your data if you launch it from the Add-ins tab of Excel. !!!只有从 Excel 的“加载项”选项卡启动 Dax Studio 才能读取您的数据。 This is the only data source type where access to the data is dependent on how Dax Studio is launched.这是唯一的数据源类型,其中对数据的访问取决于 Dax Studio 的启动方式。 Again, YOU MUST LAUNCH THIS FROM THE ADDINS MENU OF THE EXCEL DOCUMENT CONTAINING YOUR QUERY/CONNECTION.同样,您必须从包含您的查询/连接的 Excel 文档的添加菜单中启动它。
  5. A dialogue box will appear.将出现一个对话框。 It should show data source "Power Pivot Model" as the radio selection.它应该显示数据源“Power Pivot Model”作为无线电选择。 If it is greyed out, it means that you have not added your query/connection to the data model.如果它显示为灰色,则表示您尚未将查询/连接添加到数据模型。
  6. Select "Connect".选择“连接”。 You will now see all the tables in your data model on the left hand side and may now extract to csv.您现在将在左侧看到数据模型中的所有表,现在可以提取到 csv。

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

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