Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi!
I have R script that I want to use as an source file for my report. I've created it in RStudio with an R version 4.0. It runs about 2-3 minutes in RStudio and produces the dataframe that I want. When I try to run the same script in PowerBI desktop R script source it either gets stuck on evaluating or to the message establishing connection to R (eventually timing out at 30 minutes).
The script is running post-requests to an API with different parameters (360 parameter pairs in total). If I sample only 40 parameters that I run, it seems to go through in Power BI. If I sample more than that it keeps evaluating.
Weird thing is that I've been able to run this same query last week without any problems.
What I've tried to resolve this issue:
Any ideas what I could try next?
Hi @ShaWo ,
See if this blog can help you:https://dataveld.com/2018/11/10/5-performance-tips-for-r-and-python-scripts-in-power-bi/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
38 | |
29 |
User | Count |
---|---|
75 | |
62 | |
45 | |
40 | |
40 |