Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
Rookarumba
Helper III
Helper III

PowerQuery/M Code or R script within Power BI

Hi Everyone,

 

I've been a heavy user of PowerQuery to perform all my ETL before passing it onto PowerBI.

As i'm working with millions of rows of data, PowerQuery can get too slow whenever i edit anything as it will go through step by step.
Thus i'm wondering if R Script would be faster to perform the ETL within PowerBI instead of PowerQuery?

I'm also curious if anyone here uses R Script within PowerBI to clean up their data.

Cheers

1 ACCEPTED SOLUTION

@v-ljerr-msft , Thanks for the reply. 

Not too sure if you're aware that if we're running huge dataset with lot of ETL, PowerQuery will rerun all the steps whenever you open it thus making it the query extremely slow.

 

I'm still learning R thus I'm here seeking advice but from what I know, R only execute the required steps and don't rerun the entire query therefore I have the impression that it might be faster as compared to PowerQuery.

 

 

View solution in original post

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Rookarumba,




Thus i'm wondering if R Script would be faster to perform the ETL within PowerBI instead of PowerQuery?

Based on my research, R is not a fast language. This is not an accident. R was purposely designed to make data analysis and statistics easier for you to do. It was not designed to make life easier for your computer. So I doubt that using R Script would be faster to perform the ETL within PowerBI instead of PowerQuery. Smiley LOL

 

Regards

@v-ljerr-msft , Thanks for the reply. 

Not too sure if you're aware that if we're running huge dataset with lot of ETL, PowerQuery will rerun all the steps whenever you open it thus making it the query extremely slow.

 

I'm still learning R thus I'm here seeking advice but from what I know, R only execute the required steps and don't rerun the entire query therefore I have the impression that it might be faster as compared to PowerQuery.

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.