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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bboy0009
Helper II
Helper II

Optimize Performance in Power Query

Hi guys,

 

In Power Query , in a table , I have 2 or plus steps of rename separately. I wonder if I group them in one same step of rename, will I optimize the performance even if it's a little. Of course, they are independants of others steps of transformation. 

 

I would appreciate if there is some engineering explaination

 

Thank you in advance !

Have a nice weekend ! 

1 ACCEPTED SOLUTION
JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @bboy0009 !

Every time we run a query or update it, there is a bunch of operations that Power Query/vertipaq do "behind the scenes".

I have duplicated a query "product" to "product (2)".
In "product, we have 2 renames separately (rename 1 and rename 2 - 2 separate steps):

JoaoMarcelino_0-1670004692987.png

In product (2), I've put together the 2 renames in just one step "renamed column":

JoaoMarcelino_1-1670004881445.png

This means that power query did half of the category operations, therefore half of the "effort" to get to the same result.
You can try this yourself here:

JoaoMarcelino_2-1670004973350.png

Depending on the options you select to "diagnose", several new audit queries will appear:

JoaoMarcelino_3-1670005111401.png


Despite reducing operations to "half" there is the question of organization: we should, has best practice to have our steps in Power Query organized and reduced to the minimum number, which avoids further confusion and eases the maintenance time 🙂

Hope I was of assistance!
Cheers
Joao Marcelino
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

View solution in original post

1 REPLY 1
JoaoMarcelino
Responsive Resident
Responsive Resident

Hi @bboy0009 !

Every time we run a query or update it, there is a bunch of operations that Power Query/vertipaq do "behind the scenes".

I have duplicated a query "product" to "product (2)".
In "product, we have 2 renames separately (rename 1 and rename 2 - 2 separate steps):

JoaoMarcelino_0-1670004692987.png

In product (2), I've put together the 2 renames in just one step "renamed column":

JoaoMarcelino_1-1670004881445.png

This means that power query did half of the category operations, therefore half of the "effort" to get to the same result.
You can try this yourself here:

JoaoMarcelino_2-1670004973350.png

Depending on the options you select to "diagnose", several new audit queries will appear:

JoaoMarcelino_3-1670005111401.png


Despite reducing operations to "half" there is the question of organization: we should, has best practice to have our steps in Power Query organized and reduced to the minimum number, which avoids further confusion and eases the maintenance time 🙂

Hope I was of assistance!
Cheers
Joao Marcelino
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.