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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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