cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hendustu Frequent Visitor
Frequent Visitor

Can PowerQuery write data back out?

So I know that PowerQuery is great for consuming and transforming data, but are there any export options? If not, what's the least klugey way to get data out of a BI model and into SQL tables, or a CSV?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power BI Team curth
Power BI Team

Re: Can PowerQuery write data back out?

Consider making a feature request on the "Give Feedback" site.

View solution in original post

15 REPLIES 15
Super User
Super User

Re: Can PowerQuery write data back out?

No.

 

Easiest/quickest way is to go into your PowerPivot model, select the table, Ctrl-A, Ctrl-C. Open new Excel file, Ctrl-V, save as CSV


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

hendustu Frequent Visitor
Frequent Visitor

Re: Can PowerQuery write data back out?

Yeah, it's just that we're often dealing with very, very large datasets.

 

There's no way to pull a data model into access is there? I'd say that we could take our workbook and pull it into Tabular Services, but I don't think on-prem SQL Server can refersh Power Query. 

Highlighted
Power BI Team curth
Power BI Team

Re: Can PowerQuery write data back out?

Consider making a feature request on the "Give Feedback" site.

View solution in original post

hendustu Frequent Visitor
Frequent Visitor

Re: Can PowerQuery write data back out?

konstantinos Senior Member
Senior Member

Re: Can PowerQuery write data back out?

You can use powerpivot in excel & vba..check this blog post from Kasper de Jonge http://www.powerpivotblog.nl/export-a-table-or-dax-query-from-power-pivot-to-csv-using-vba/
Konstantinos Ioannou
ImkeF
MVP

Re: Can PowerQuery write data back out?

Another option:

With the December update you can use the workaround via R to export your data from Power BI to txt or SQL-server: http://www.thebiccountant.com/2015/12/28/how-to-export-data-from-power-bi-and-power-query/

Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




fbeekvel
Advisor

Re: Can PowerQuery write data back out?

You can use SSIS to connect to Power BI desktop and use SSIS to export the data to wherever you like.

The method described here: http://biinsight.com/connect-to-power-bi-desktop-model-from-excel-and-ssms/ can be used as well to connect from SSIS.

mim Member
Member

Re: Can PowerQuery write data back out?

another option that does not require any third party is to use powershell, i tried the vba approach and it does not work with large data, R works very well, but in some environement it may not be available

 

the script is here

 

 

ImkeF
MVP

Re: Can PowerQuery write data back out?

This is brilliant mim !!!

Re size-limitations: Change the export-format to txt (instead of csv) and these size-limits are gone 🙂

Thx a ton!

Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (1,421)