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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live 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
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 42 | |
| 41 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 148 | |
| 109 | |
| 63 | |
| 37 | |
| 36 |