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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Gozde
Helper I
Helper I

Export Table via R script (Power Query)

Hello,

 

I am working on a report. I should get some data export from Power Query via R script.

 

I am using a code of write.table.

 

But, I am getting error: DataSource.Error: ADO.NET: R script error.

 

Can you help me with a sample code for csv or xlsx?

 

Thank you!

 

Gozde

1 ACCEPTED SOLUTION
v-sihou-msft
Employee
Employee

@Gozde

 

You should do it in R visual to execute your "export data" R script. Make your install proper packages and assign permission to those packages on file. For more details, please refer to article below:

 

Export dataset into a file from Power BI Desktop using R script

 

Regards,

View solution in original post

2 REPLIES 2
v-sihou-msft
Employee
Employee

@Gozde

 

You should do it in R visual to execute your "export data" R script. Make your install proper packages and assign permission to those packages on file. For more details, please refer to article below:

 

Export dataset into a file from Power BI Desktop using R script

 

Regards,

Thank you very much 🙂

 

It solved my problem! I already installed the packages and R. However I should go Power BI instead of power Query and my directory was totaly wrong!

 

Best regards,

Gozde

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.