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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
First time using R and for someone reason its seems to be a hit and miss.
My code is below.
# dataset <- data.frame(H, SA, MA, Year, Subject)
# dataset <- unique(dataset)
library(plotly)
fig <- plot_ly(data = dataset, x = ~SA, y = ~MA)
figHi @bobbob123 ,
Please check this limitation list if there are some limitations in your operating environment.
Learn which R packages are supported - Power BI | Microsoft Docs
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check the details on the error statement. you should be able to know the problem statement
Proud to be a Super User!
This is the message I recieve.
No image was created. The R code didnt result in creation of any visuals.
As I've said It works on R Studio and I can run other simple scripts on Power BI using R. But I can't seem to get plotly to work.
https://community.powerbi.com/t5/Desktop/Using-Plot-ly-with-R-in-Power-BI-Desktop/m-p/717803
This thread may help you!
Proud to be a Super User!
I'm not sure, I've tried to run other scripts on POWER BI it works. When I try plotly it doesn't.
Plotly requires use of Node.js to operate. PBI cannot render Plotly natively, so it needs to be 'wrapped' in Node.js to work.
See link below
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!