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

How to Export Query in Power BI Desktop as CSV

Hello Community,

 

Can someone let me know how to export a query generated from the Query Editor to a CSV file?

 

Thanks

 

Carlton

1 ACCEPTED SOLUTION

Accepted Solutions
v-danhe-msft Super Contributor
Super Contributor

Re: How to Export Query in Power BI Desktop as CSV

Hi @cpatte7372,

Based on my research, in query editor, there is not a function to output a csv file in Power BI, I suggest you to try below solutions:

1.You could copy the table you want to export in data view after you have applied your queries.

Reference:https://community.powerbi.com/t5/Desktop/How-to-export-some-huge-query-results-in-excel/td-p/200084

 

2.You could use the Dax Studio to export the file you want.

Rference:https://community.powerbi.com/t5/Desktop/Export-to-csv-from-Power-Query/td-p/193423

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
Super User
Super User

Re: How to Export Query in Power BI Desktop as CSV

@cpatte7372 Just want to make it clear, you mean to export the M-code in "Advanced Editor" ? If that is the case, there is no such option. Please post the screenshot which you are referring to ?



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

Proud to be a Datanaut !





cpatte7372 Frequent Visitor
Frequent Visitor

Re: How to Export Query in Power BI Desktop as CSV

Hi Pattemanohar,

 

Thanks for responding. 

 

I would like to export/copy the query from the screen shot into a .csv

powerbi.png

 

Thanks

cpatte7372 Frequent Visitor
Frequent Visitor

Re: How to Export Query in Power BI Desktop as CSV

So, pattemmanohar, the original .csv was uploaded into Power BI and edited with Query Editor. I would now like export the edited .csv file back with the edits made with Query Editor.

 

Can you let me know how that is accomplished/

 

Cheers

v-danhe-msft Super Contributor
Super Contributor

Re: How to Export Query in Power BI Desktop as CSV

Hi @cpatte7372,

Based on my research, in query editor, there is not a function to output a csv file in Power BI, I suggest you to try below solutions:

1.You could copy the table you want to export in data view after you have applied your queries.

Reference:https://community.powerbi.com/t5/Desktop/How-to-export-some-huge-query-results-in-excel/td-p/200084

 

2.You could use the Dax Studio to export the file you want.

Rference:https://community.powerbi.com/t5/Desktop/Export-to-csv-from-Power-Query/td-p/193423

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft Super Contributor
Super Contributor

Re: How to Export Query in Power BI Desktop as CSV

Hi @cpatte7372,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Virtual Launch Event

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 284 members 2,855 guests
Please welcome our newest community members: