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! Get ahead of the game and start preparing now! Learn more
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 36 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |