- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Export Data Using R from Power BI Service
Hi Community,
I have created table using R Script in Power Bi Desktop and I have added script to export data from R Scripted Table. It works fine and data exported to the path as I mentioned in the Script in Power BI Desktop. When I publish same report to Power Bi Service, Script Ran successfully without any error. I could not find the path where the exported data located in Power BI Service. Please do needful as earlier.
Following is my script I have used
----------------------------------------------------------------------------------------
dataset <- data.frame(ref, ref1, ref2, ref3,ref4)
dataset <- unique(dataset)
library(gridExtra)
a<-data.frame(dataset$ref,dataset$ref1,dataset$ref2,dataset$ref3)
colnames(a) <- c("Ref", "Risk Value","Title","Desc")
file<-dataset$ref4[1]
file1<-paste("~/",paste(file,".csv",sep=''),sep='') # "~/" it refers to default working directory (path) of R
if(dataset$Output.2[1] == "Export")
{
zz <- file(description=file1, "w")
write.csv(a, zz)
close(zz)
}
grid.table("Exported")
----------------------------------------------------------------------------------------
Thanks in Advance,
Sowmiya
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sowmiya ,
I am afraid that Power BI servce doesn't support it currently.
You could refer to this resolved case:
If this post helps, then please consider Accept it as the solution to help the other members find it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sowmiya ,
I am afraid that Power BI servce doesn't support it currently.
You could refer to this resolved case:
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
09-12-2023 09:02 AM | |||
05-28-2024 12:45 PM | |||
01-10-2024 04:55 AM | |||
03-26-2024 08:41 AM | |||
12-18-2023 05:02 AM |