Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SriKandimalla
Helper I
Helper I

How to export Error Query into Excel

Hello PBI Community,

 

I have few queries and when I tried to "Close&Apply" there were few error rows and I clicked "See errors". So, we can see the errors in a new query generated by Power BI and called as Errors in "TABLENAME".

 

Now, my question is, Is there a way to export that into excel or csv?

Thanks in Advance. As always I appreciate your help

 

2 ACCEPTED SOLUTIONS
v-diye-msft
Community Support
Community Support

Hi @SriKandimalla 

 

Here is one solution:

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

 

The other method would be to insert an R script step in your query to do the output.

 

 

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

View solution in original post

Anonymous
Not applicable

@SriKandimalla 

You can use this to export as CSV with R scrhipt 

# 'dataset' holds the input data for this script
write.csv(dataset, "C:\\Users\\user\\Desktop\\test\\test.CSV")


write.csv(dataset, "Destination\\test.CSV")

 
May the BI force be with you! If this post helps, then please consider Accept it as the solution to help the other members find it more quickly! Thanks!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@SriKandimalla 

You can use this to export as CSV with R scrhipt 

# 'dataset' holds the input data for this script
write.csv(dataset, "C:\\Users\\user\\Desktop\\test\\test.CSV")


write.csv(dataset, "Destination\\test.CSV")

 
May the BI force be with you! If this post helps, then please consider Accept it as the solution to help the other members find it more quickly! Thanks!
v-diye-msft
Community Support
Community Support

Hi @SriKandimalla 

 

Here is one solution:

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

 

The other method would be to insert an R script step in your query to do the output.

 

 

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors