Adding a new blank step in Power Query

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
In Power Query, if I'm in the Query Editor view (not in the Advanced Editor), where I'm looking at my query and all of the steps along the right side, is there any way to insert a new blank step, so that I can start typing in the formula bar? Or is the only way to insert a new step by entering the Advanced Editor?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You can also select a step in Query editor and make a change to the Power Query. Should get a warning about inserting a step in the middle. Hit 'OK' and it will add it. Of course, if the addition conflicts with a later step, the whole query will blow up and stop working. But you can then hand edit in Advanced editor if you want.
 
Upvote 0
Click on the step just before where you want to add. Then click the fx button to the left of the formula bar. You will get the warning that akice mentions, so verify you want to insert a step here. You will see in the formula bar "= Stepname" where Stepname is the step you initially clicked on. This is the usual input to your new step.

For example, say you want to get the column names after you filter your table. Click on #"Filtered Rows", then fx. You will see " = #"Filtered Rows". Click after the equal sign and type "Table.ColumnNames(" then add the closing parenthesis at the end of the line. So your new line is "=Table.ColumnNames(#"Filtered Rows").
Note that your step name will be "Custom" and a number, so you will want to give it a descriptive name.
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,905
Members
449,478
Latest member
Davenil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top