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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Pierrechapar
Frequent Visitor

R script visual not working in service

Hi,

 

I'm having an issue with a R script visual in power bi service. The script is pretty straight forward.

library("ggplot2")
library("forcats")
dataset$Tarifa <- factor(dataset$Tarifa, levels = c("A", "B", "C", "D","E"))
 
ggplot(dataset, # Draw barplot with grouping & stacking
aes(x = Año,
y = Value,
fill = Tarifa)) +
geom_bar(stat = "identity",
position = "stack") +
facet_grid(~ Month) 
 
The error I get in service is:
Pierrechapar_0-1654246265616.png

IF anyone could help me solve this, I would be gratefull, since I can't find any other ways to create a visual like this.

I'm a newbe in R script and this is my first interaction with R.

 

Thanks a million!

2 REPLIES 2
Anonymous
Not applicable

Hi @Pierrechapar ,

 

You may check these Considerations and limitations for R script visual in Power BI Service.

https://docs.microsoft.com/en-us/power-bi/visuals/service-r-visuals#considerations-and-limitations 

 

Best Regards,

Jay

CasualDA
Frequent Visitor

Hi,

 

you have to run your gateway in personal mode for R/Python scripts to work. Further more you also have to install R and all dependecies on the machine that runs the gateway.

 

Is this currently the case?

 

Greetings

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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