Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have a very simple R plot I am trying to add to my PowerBI Report.
Here is the code:
Solved! Go to Solution.
Hi @Anonymous ,
Actually, your code works well on my side. Which power bi version and r script version you test?
library(ggplot2) options(scipen=999) ggplot(data=dataset, mapping =aes(x=dataset$ID, y= dataset$Amount, group=1)) + geom_bar(position="dodge", stat="identity")
Regards,
Xiaoxin Sheng
I had the same issue, I was using my work computer and the default location was "\\MAR-XXXX\homedrive$\Brenton.Collins\R"
It was a mapped drive that must have been causing the issue.
I installed it on C:\R instead which fixed the issue.
Hi @Anonymous ,
Actually, your code works well on my side. Which power bi version and r script version you test?
library(ggplot2) options(scipen=999) ggplot(data=dataset, mapping =aes(x=dataset$ID, y= dataset$Amount, group=1)) + geom_bar(position="dodge", stat="identity")
Regards,
Xiaoxin Sheng